diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-11-07 15:51:51 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-11-07 15:57:36 +0000 |
commit | c125820e6ad9ab46ffd6ca165be4b94a3b7c738b (patch) | |
tree | c06ebb1939199b288f1c2a1ac280b7f914c9d6ae /t/app/controller/admin.t | |
parent | 3928b590dade9be0624ae0b2fb6fdfbc5f5b3e03 (diff) |
Add more admin external link icons.
Use a relative URL in the CSS in case it's proxied.
Diffstat (limited to 't/app/controller/admin.t')
-rw-r--r-- | t/app/controller/admin.t | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index a48e2e919..4970821a8 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -1040,19 +1040,19 @@ subtest 'report search' => sub { $mech->content_contains( $report->title ); my $r_id = $report->id; - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id"[^>]*>$r_id</a>} ); $mech->get_ok('/admin/reports?search=' . $report->external_id); - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id"[^>]*>$r_id</a>} ); $mech->get_ok('/admin/reports?search=ref:' . $report->external_id); - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id"[^>]*>$r_id</a>} ); $mech->get_ok('/admin/reports?search=' . $report->user->email); my $u_id = $update->id; - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} ); - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id#update_$u_id">$u_id</a>} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id"[^>]*>$r_id</a>} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id#update_$u_id"[^>]*>$u_id</a>} ); $update->state('hidden'); $update->update; @@ -1070,7 +1070,7 @@ subtest 'report search' => sub { $report->update; $mech->get_ok('/admin/reports?search=' . $report->user->email); - $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id">$r_id</a>} ); + $mech->content_like( qr{href="http://[^/]*[^.]/report/$r_id"[^>]*>$r_id</a>} ); }; subtest 'search abuse' => sub { |