-
-
Notifications
You must be signed in to change notification settings - Fork 242
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
27 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,7 @@ for my $body ( | |
{ area_id => 164186, name => 'Northamptonshire Highways', cobrand => 'northamptonshire' }, | ||
{ area_id => 2566, name => 'Peterborough City Council', cobrand => 'peterborough' }, | ||
{ area_id => 2508, name => 'Hackney Council', cobrand => 'hackney' }, | ||
{ area_id => 2242, name => 'Surrey Council', cobrand => 'surrey' }, | ||
) { | ||
my $extra = { cobrand => $body->{cobrand} } if $body->{cobrand}; | ||
my $body_obj = $mech->create_body_ok($body->{area_id}, $body->{name}, $extra); | ||
|
@@ -86,6 +87,11 @@ $mech->create_contact_ok( | |
category => 'Trees', | ||
email => '[email protected]', | ||
); | ||
$mech->create_contact_ok( | ||
body_id => $body_ids{2242}, # Surrey | ||
category => 'Trees', | ||
email => '[email protected]', | ||
); | ||
$mech->create_contact_ok( | ||
body_id => $body_ids{2600}, # Rutland | ||
category => 'Trees', | ||
|
@@ -393,6 +399,19 @@ foreach my $test ( | |
}, | ||
errors => [ 'Please make sure you are not including an email address', ], | ||
}, | ||
{ | ||
msg => 'Surrey long detail', | ||
pc => 'KT11 1LZ', | ||
fields => { | ||
%shared, | ||
detail => 'X' . 'x' x 1001, | ||
name => 'Bob Example', | ||
username_register => '[email protected]', | ||
category => 'Trees', | ||
}, | ||
changes => { }, | ||
errors => [ 'Please enter a subject', 'Reports are limited to 1000 characters in length. Please shorten your report' ], | ||
}, | ||
{ | ||
msg => 'Bromley long detail', | ||
pc => 'BR1 3UH', | ||
|
@@ -587,7 +606,7 @@ foreach my $test ( | |
|
||
# submit initial pc form | ||
FixMyStreet::override_config { | ||
ALLOWED_COBRANDS => [ { fixmystreet => '.' }, 'bromley', 'oxfordshire', 'rutland', 'lincolnshire', 'buckinghamshire', 'northamptonshire', 'peterborough', 'hackney' ], | ||
ALLOWED_COBRANDS => [ { fixmystreet => '.' }, 'bromley', 'oxfordshire', 'rutland', 'lincolnshire', 'buckinghamshire', 'northamptonshire', 'peterborough', 'hackney', 'surrey' ], | ||
MAPIT_URL => 'http://mapit.uk/', | ||
}, sub { | ||
$mech->submit_form_ok( { with_fields => { pc => $test->{pc} } }, | ||
|