From 68fc33ac915bda5c5e737c037eb7854068039d29 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 30 Jul 2015 16:38:57 +0100 Subject: Add mark as sent button to admin. --- t/app/controller/admin.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/app/controller/admin.t') diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index f63a72117..fb3ab1917 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' ); -- cgit v1.2.3 From 749df1cfe907190632b09e434f9411cf08b5b2cf Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 30 Jul 2015 16:41:18 +0100 Subject: Mark users who have moderate permission. --- t/app/controller/admin.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/app/controller/admin.t') diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index fb3ab1917..498f1cedc 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -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.*\s*.*?\s*\(Email in abuse table}); + $mech->content_like(qr{test4\@example.com.*\s*.*?\s*\(Email in abuse table}s); }; subtest 'show flagged entries' => sub { -- cgit v1.2.3