diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-08-09 12:47:10 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-16 14:25:13 +0100 |
commit | b45dec26710e83aed051f4eebc2b0d3b80ff525a (patch) | |
tree | d0a796e23acf1bb2227d1be5c0c59673e0b6703e /t/cobrand | |
parent | 5fa588c7be0e3cf62a3f90924d68f8db803a6fb2 (diff) |
[Westminster] Do not create any reporter alerts.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/westminster.t | 16 |
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(); |