aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-02 10:58:34 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-02 14:14:26 +0000
commit2789a591bb56124e02f13de0fba86fa5899e6ebb (patch)
treea31defeb4525cffd0f3e2640d81ca66cd665e9ae /t/app
parent9ccfe2d97943716ae06c98ff85ea3b95c1ff3357 (diff)
Fix post-edit issues on admin report edit page.
If you rotated a photo, updates and the category list weren't loaded. If you changed a report's state, the map pin colour was derived from the old state.
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/admin/report_edit.t4
1 files changed, 4 insertions, 0 deletions
diff --git a/t/app/controller/admin/report_edit.t b/t/app/controller/admin/report_edit.t
index a8a0bd143..e61f781f5 100644
--- a/t/app/controller/admin/report_edit.t
+++ b/t/app/controller/admin/report_edit.t
@@ -364,6 +364,10 @@ foreach my $test (
$mech->content_lacks( 'type="submit" name="resend"', 'no resend button' );
}
+ if ($report->state eq 'fixed') {
+ $mech->content_contains('pin-green');
+ }
+
$test->{changes}->{flagged} = 1 if $test->{changes}->{flagged};
$test->{changes}->{non_public} = 1 if $test->{changes}->{non_public};