aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/index.t
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2019-07-31 13:49:15 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 14:25:12 +0100
commit391f22eca24af2e2268a0ed9715936386e4f0246 (patch)
treefc361daa08e4fd09316b55a9c86586a492a4c1ed /t/app/controller/index.t
parent1c843e8f8c5a3c0a6afe0aa9af83cb95b8bce1df (diff)
Enable passing of ‘filter_category’ param to / to pre-filter /around map
Diffstat (limited to 't/app/controller/index.t')
-rw-r--r--t/app/controller/index.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/app/controller/index.t b/t/app/controller/index.t
index bd268b3d7..691eb0007 100644
--- a/t/app/controller/index.t
+++ b/t/app/controller/index.t
@@ -91,6 +91,12 @@ 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');
+ # NB can't use visible_form_values because categories field is hidden
+ $mech->content_contains("MyUniqueTestCategory");
+};
+
END {
done_testing();
}