aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2019-01-03 17:41:32 +0000
committerStruan Donald <struan@exo.org.uk>2019-01-07 11:15:14 +0000
commit71a4ee10c87d37bb7a3e2f1cae313cc9c0c53928 (patch)
tree82eb5ad74a91d5acc003c8cbd46e455fb7cb232f
parentbf87405adafa89e5df7de3141ef08fb1ec85ff32 (diff)
[Borsetshire] add extra categories to demo site
Dropped Kerbs and Skips in a Licensing group.
-rw-r--r--.cypress/cypress/integration/category_tests.js1
-rwxr-xr-xbin/fixmystreet.com/fixture9
2 files changed, 10 insertions, 0 deletions
diff --git a/.cypress/cypress/integration/category_tests.js b/.cypress/cypress/integration/category_tests.js
index e9cf6b0d1..60ef240fa 100644
--- a/.cypress/cypress/integration/category_tests.js
+++ b/.cypress/cypress/integration/category_tests.js
@@ -16,6 +16,7 @@ describe('Basic categories', function() {
'Flytipping',
'Footpath/bridleway away from road',
'Graffiti',
+ 'Licensing',
'Parks/landscapes',
'Pavements',
'Potholes',
diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture
index 52e38e2aa..b32da6f33 100755
--- a/bin/fixmystreet.com/fixture
+++ b/bin/fixmystreet.com/fixture
@@ -76,6 +76,15 @@ for my $cat (qw/Overflowing Broken Missing/) {
$child_cat->update;
}
+for my $cat ('Dropped Kerbs', 'Skips') {
+ my $child_cat = FixMyStreet::DB::Factory::Contact->find_or_create({
+ body => $body,
+ category => $cat
+ });
+ $child_cat->set_extra_metadata( group => 'Licensing' );
+ $child_cat->update;
+}
+
FixMyStreet::DB::Factory::ResponseTemplate->create({
body => $body, title => 'Generic',
text => 'Thank you for your report, we will be in touch with an update soon.' });