aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-02-25 14:56:19 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-02-26 13:52:14 +0000
commit75cf754c0b13b4547d249423c20f3fe9903deb12 (patch)
tree678682232633e1efff3ddd3e180331ae97801b5d /t
parenta3575d43f6717ee745a9689d55103ce9c87587ed (diff)
Fix filter_group picking if category group a list.
Diffstat (limited to 't')
-rw-r--r--t/app/controller/around.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/around.t b/t/app/controller/around.t
index bd2bf2cee..cd992270f 100644
--- a/t/app/controller/around.t
+++ b/t/app/controller/around.t
@@ -261,6 +261,9 @@ subtest 'check category, status and extra filtering works on /around' => sub {
$mech->get_ok( '/around?filter_category=Pothole&bbox=' . $bbox );
$mech->content_contains('<option value="Pothole" selected>');
$mech->content_contains('<optgroup label="Environment">');
+
+ $mech->get_ok( '/around?filter_group=Environment&bbox=' . $bbox );
+ $mech->content_contains('<option value="Flytipping" selected>');
};
$json = $mech->get_ok_json( '/around?ajax=1&filter_category=Pothole&bbox=' . $bbox );