diff options
author | Matthew Somerville <matthew@mysociety.org> | 2015-07-31 13:27:56 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2015-07-31 13:27:56 +0100 |
commit | 0d65707e831bacc272db6dd2ce539de57e412033 (patch) | |
tree | e86986b7eb4a1ade3eda806f840cd3711d44d02f /t/app/controller | |
parent | b748677e472552c45c2fdc32c7ae9462cd2c0ce8 (diff) | |
parent | 749df1cfe907190632b09e434f9411cf08b5b2cf (diff) |
Merge branch 'admin-external-url'
Diffstat (limited to 't/app/controller')
-rw-r--r-- | t/app/controller/admin.t | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index f63a72117..498f1cedc 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -568,7 +568,7 @@ foreach my $test ( $report->discard_changes; - if ( $report->state eq 'confirmed' ) { + if ($report->state eq 'confirmed' && $report->whensent) { $mech->content_contains( 'type="submit" name="resend"', 'resend button' ); } else { $mech->content_lacks( 'type="submit" name="resend"', 'no resend button' ); @@ -1083,7 +1083,7 @@ subtest 'report search' => sub { subtest 'search abuse' => sub { $mech->get_ok( '/admin/users?search=example' ); - $mech->content_like(qr{test4\@example.com.*</td>\s*<td>.*?</td>\s*<td>\(Email in abuse table}); + $mech->content_like(qr{test4\@example.com.*</td>\s*<td>.*?</td>\s*<td>\(Email in abuse table}s); }; subtest 'show flagged entries' => sub { |