aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_new.t12
1 files changed, 10 insertions, 2 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 88236a1c3..f97e0daf4 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -1015,8 +1015,16 @@ SKIP: {
$report->discard_changes;
is $report->state, 'confirmed', "Report is now confirmed";
- # Shouldn't be found, as it was a county problem
- is $mech->get( '/report/' . $report->id )->code, 404, "report not found";
+ # County problems are redirected to the main site
+ $mech->get_ok( '/report/' . $report->id );
+ $mech->title_like(
+ qr/Test Report - Viewing a problem :: FixMyStreet/,
+ 'county problems redirected to main FMS site'
+ );
+ $mech->content_lacks(
+ 'Lichfield District',
+ 'Not on Lichfield cobrand'
+ );
# But should be on the main site
$mech->host( 'www.fixmystreet.com' );