diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2013-09-09 15:45:04 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2013-09-10 15:57:22 +0100 |
commit | bd0e4f640a265eaaab1a90d2a64c1f5db6f81e87 (patch) | |
tree | c006c4c710587546cfcf197b83b729fa7b168d41 /t | |
parent | f84f9b04a6364850b5af37a1674309c95b1bac86 (diff) |
[Zurich] Save internal notes as hidden comments, rather than in the extra field
Diffstat (limited to 't')
-rw-r--r-- | t/cobrand/zurich.t | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t index 77a754cd1..790a0c3c5 100644 --- a/t/cobrand/zurich.t +++ b/t/cobrand/zurich.t @@ -132,8 +132,10 @@ $mech->content_contains('photo/' . $report->id . '.jpeg'); # Internal notes $mech->get_ok( '/admin/report_edit/' . $report->id ); -$mech->submit_form_ok( { with_fields => { internal_notes => 'Some internal notes.' } } ); -$mech->content_contains( 'Some internal notes' ); +$mech->submit_form_ok( { with_fields => { new_internal_note => 'Initial internal note.' } } ); +$mech->submit_form_ok( { with_fields => { new_internal_note => 'Another internal note.' } } ); +$mech->content_contains( 'Initial internal note.' ); +$mech->content_contains( 'Another internal note.' ); # Original description $mech->submit_form_ok( { with_fields => { detail => 'Edited details text.' } } ); @@ -170,7 +172,7 @@ $mech->content_contains( DateTime->now->strftime("%d.%m.%Y") ); $mech->content_contains( 'In Bearbeitung' ); $mech->get_ok( '/admin/report_edit/' . $report->id ); -$mech->content_contains( 'Some internal notes' ); +$mech->content_contains( 'Initial internal note' ); $mech->submit_form_ok( { with_fields => { status_update => 'This is an update.' } } ); is $mech->uri->path, '/admin/report_edit/' . $report->id, "still on edit page"; |