aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/index.t
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-08-16 14:26:17 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 14:26:17 +0100
commite13c2a88e875b549624df0d1ad46bb0e2e121653 (patch)
tree5122704fe370499d35643b96f8bc9440d70cb152 /t/app/controller/index.t
parent52dfeb4d3c0883d05d01662597f1f8f5d74ba15b (diff)
parent3137ae8d24dd4ab922ef83b5733332b54bac1903 (diff)
Merge branch 'westminster-reviewed'
Diffstat (limited to 't/app/controller/index.t')
-rw-r--r--t/app/controller/index.t7
1 files changed, 7 insertions, 0 deletions
diff --git a/t/app/controller/index.t b/t/app/controller/index.t
index bd268b3d7..3f3aed48e 100644
--- a/t/app/controller/index.t
+++ b/t/app/controller/index.t
@@ -91,6 +91,13 @@ subtest "prefilters /around if user has categories" => sub {
$mech->content_contains("Cows,Potholes");
};
+subtest "prefilters /around if filter_category given in URL" => sub {
+ $mech->get_ok('/?filter_category=MyUniqueTestCategory&filter_group=MyUniqueTestGroup');
+ # NB can't use visible_form_values because fields are hidden
+ $mech->content_contains("MyUniqueTestCategory");
+ $mech->content_contains("MyUniqueTestGroup");
+};
+
END {
done_testing();
}