diff options
Diffstat (limited to 't/cobrand/isleofwight.t')
-rw-r--r-- | t/cobrand/isleofwight.t | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/t/cobrand/isleofwight.t b/t/cobrand/isleofwight.t index 3cac710da..ad9017e26 100644 --- a/t/cobrand/isleofwight.t +++ b/t/cobrand/isleofwight.t @@ -116,13 +116,24 @@ subtest "only original reporter can comment" => sub { }; }; +subtest "only original reporter can comment" => sub { + FixMyStreet::override_config { + MAPIT_URL => 'http://mapit.uk/', + ALLOWED_COBRANDS => 'fixmystreet', + COBRAND_FEATURES => { updates_allowed => { fixmystreet => { 'Isle of Wight' => 'reporter' } } }, + }, sub { + $mech->log_out_ok; + $mech->get_ok('/report/' . $reports[0]->id); + $mech->content_contains('Only the original reporter may leave updates'); + }; +}; + subtest "check moderation label uses correct name" => sub { my $REPORT_URL = '/report/' . $reports[0]->id; FixMyStreet::override_config { MAPIT_URL => 'http://mapit.uk/', ALLOWED_COBRANDS => ['isleofwight'], }, sub { - $mech->log_out_ok; $mech->log_in_ok( $iow_user->email ); $mech->get_ok($REPORT_URL); $mech->content_lacks('show-moderation'); @@ -470,7 +481,7 @@ subtest "sends branded confirmation emails" => sub { detail => 'Test report details.', photo1 => '', name => 'Joe Bloggs', - username => 'test-1@example.com', + username_register => 'test-1@example.com', category => 'Roads', } }, |