diff options
author | Matthew Somerville <matthew@mysociety.org> | 2013-02-05 10:30:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2013-02-05 10:30:06 +0000 |
commit | 6e387850c170743ce2ba61a890e34bc9ad8ff3b8 (patch) | |
tree | 30de98d6de0f2c4fd421767ca260eb7caf11104c /t/cobrand | |
parent | 33c7cab5e21eaa0f4aeb353f2e85768443aabe13 (diff) |
Redirect better to prevent possible infinite loop, update test.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/zurich.t | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index f354f0da4..f64eec2a3 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -49,7 +49,7 @@ my $user = $mech->log_in_ok( 'dm1@example.org') ; $user->from_body( undef ); $user->update; $mech->get_ok( '/admin' ); -is $mech->uri->path, '/auth', "got sent to the sign in page"; +is $mech->uri->path, '/my', "got sent to /my"; $user->from_body( 2 ); $user->update; @@ -82,7 +82,7 @@ $mech->content_contains( 'Some internal notes' ); # Original description $mech->submit_form_ok( { with_fields => { detail => 'Edited details text.' } } ); $mech->content_contains( 'Edited details text.' ); -$mech->content_contains( 'originally entered: “Test Test 1 for 2 Detail”' ); +$mech->content_contains( 'Originaltext: “Test Test 1 for 2 Detail”' ); $mech->get_ok( '/admin/report_edit/' . $report->id ); $mech->submit_form_ok( { with_fields => { body_subdivision => 3 } } ); @@ -101,7 +101,7 @@ $mech->log_out_ok; $user = $mech->log_in_ok( 'sdm1@example.org') ; $mech->get_ok( '/admin' ); -is $mech->uri->path, '/auth', "got sent to the sign in page"; +is $mech->uri->path, '/my', "got sent to /my"; $user->from_body( 3 ); $user->update; |