aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorZarino Zappia <mail@zarino.co.uk>2016-10-03 11:25:53 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-10-04 10:37:32 +0100
commitb860aa76086db0f30b1d9ba5241b2c850e5cda90 (patch)
tree7499ffe09c403fba008bf9174613cfef861f6eb7 /t/app/controller
parent179845c83b1a17f56c779e8f0e89317c57fa84b8 (diff)
Restructure Inspect form into logical sections
IDs and locations at the top, then location-related actions (including a new “navigate to this problem” button), then status and category inputs (since these can have an effect on how we display the rest of the form), then any status/category-related inputs, and finally inputs for internal details like priority and traffic management.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_inspect.t6
1 files changed, 3 insertions, 3 deletions
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t
index 3aea08eec..690a01ca1 100644
--- a/t/app/controller/report_inspect.t
+++ b/t/app/controller/report_inspect.t
@@ -46,10 +46,10 @@ FixMyStreet::override_config {
};
subtest "test basic inspect submission" => sub {
- $mech->submit_form_ok({ button => 'save', with_fields => { traffic_information => 'Lots', state => 'Planned' } });
+ $mech->submit_form_ok({ button => 'save', with_fields => { traffic_information => 'Yes', state => 'Planned' } });
$report->discard_changes;
is $report->state, 'planned', 'report state changed';
- is $report->get_extra_metadata('traffic_information'), 'Lots', 'report data changed';
+ is $report->get_extra_metadata('traffic_information'), 'Yes', 'report data changed';
};
subtest "test inspect & instruct submission" => sub {
@@ -94,7 +94,7 @@ FixMyStreet::override_config {
$mech->contains_or_lacks($test->{priority}, 'Priority');
$mech->contains_or_lacks($test->{priority}, 'High');
$mech->contains_or_lacks($test->{category}, 'Category');
- $mech->contains_or_lacks($test->{detailed}, 'Detailed problem information');
+ $mech->contains_or_lacks($test->{detailed}, 'Extra details');
$mech->submit_form_ok({
button => 'save',
with_fields => {