diff options
Diffstat (limited to 't')
-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(); |