aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-09 12:47:10 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 14:25:13 +0100
commitb45dec26710e83aed051f4eebc2b0d3b80ff525a (patch)
treed0a796e23acf1bb2227d1be5c0c59673e0b6703e /t/cobrand
parent5fa588c7be0e3cf62a3f90924d68f8db803a6fb2 (diff)
[Westminster] Do not create any reporter alerts.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/westminster.t16
1 files changed, 16 insertions, 0 deletions
diff --git a/t/cobrand/westminster.t b/t/cobrand/westminster.t
index 83c796716..756b9720c 100644
--- a/t/cobrand/westminster.t
+++ b/t/cobrand/westminster.t
@@ -149,4 +149,20 @@ FixMyStreet::override_config {
};
};
+FixMyStreet::override_config {
+ ALLOWED_COBRANDS => 'westminster',
+ MAPIT_URL => 'http://mapit.uk/',
+}, sub {
+ subtest 'No reporter alert created' => sub {
+ my $user = $mech->log_in_ok('test@example.org');
+ $mech->get_ok('/');
+ $mech->submit_form_ok( { with_fields => { pc => 'SW1A1AA' } }, "submit location" );
+ $mech->follow_link_ok( { text_regex => qr/skip this step/i, }, "follow 'skip this step' link" );
+ $mech->submit_form_ok( { with_fields => {
+ title => 'Title', detail => 'Detail', category => 'Abandoned bike', name => 'Test Example',
+ } }, 'submitted okay' );
+ is $user->alerts->count, 0;
+ };
+};
+
done_testing();