Improve unit test (#1532)

This commit is contained in:
Christophe Maudoux 2018-11-03 23:30:45 +01:00
parent 6c02e92d8b
commit 723ea51979

View File

@ -54,9 +54,10 @@ SKIP: {
ok( $res->[2]->[0] =~ m%<form action="https://test.example.com"%,
' Redirect URL found' )
or print STDERR Dumper( $res->[2]->[0] );
ok( $res->[1]->[9] =~ m%;form-action \'self\' https://test.example.com;%,
my $header = getHeader($res, 'Content-Security-Policy');
ok( $header =~ m%;form-action \'self\' https://test.example.com;%,
' CSP URL found' )
or print STDERR Dumper( $res->[1]->[9] );
or print STDERR Dumper( $res->[1] );
ok( $res->[2]->[0] !~ /4_demo/, '4_Demo not displayed' );
ok( $res->[2]->[0] =~ qr%<img src="/static/common/logos/logo_llng_old.png"%,
'Found custom Main Logo' )