aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/report_inspect.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2016-12-13 16:30:47 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2016-12-15 17:24:51 +0000
commit6375eb5d31aa250f5d990d6d6420dd04cf25e3bf (patch)
tree73129be72ef59a03faa88557fd3869f6b27bd5f1 /t/app/controller/report_inspect.t
parent5f579853c13959d314b2155703fd03642be03443 (diff)
Update priorities in inspect form on cat. change.
Different categories may have a different list of priorities, so store them all and update as the category changes.
Diffstat (limited to 't/app/controller/report_inspect.t')
-rw-r--r--t/app/controller/report_inspect.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t
index efb32d116..094af3dfc 100644
--- a/t/app/controller/report_inspect.t
+++ b/t/app/controller/report_inspect.t
@@ -102,8 +102,8 @@ FixMyStreet::override_config {
$user->user_body_permissions->delete;
$user->user_body_permissions->create({ body => $oxon, permission_type => $test->{type} });
$mech->get_ok("/report/$report_id");
- $mech->contains_or_lacks($test->{priority}, 'Priority');
- $mech->contains_or_lacks($test->{priority}, 'High');
+ $mech->contains_or_lacks($test->{priority}, 'Priority</label>');
+ $mech->contains_or_lacks($test->{priority}, '>High');
$mech->contains_or_lacks($test->{category}, 'Category');
$mech->contains_or_lacks($test->{detailed}, 'Extra details');
$mech->submit_form_ok({