aboutsummaryrefslogtreecommitdiffstats
path: root/bin/test-run
diff options
context:
space:
mode:
Diffstat (limited to 'bin/test-run')
-rwxr-xr-xbin/test-run9
1 files changed, 6 insertions, 3 deletions
diff --git a/bin/test-run b/bin/test-run
index 9c3142207..41af2fe10 100755
--- a/bin/test-run
+++ b/bin/test-run
@@ -251,8 +251,11 @@ sub submit_report {
email => email_n($user_num),
phone => '555 5555'};
- if ($cobrand eq 'cy.emptyhomes.'){
+ if ($cobrand eq 'cy.emptyhomes.') {
$fields->{category} = "Bloc cyfan o fflatiau gwag";
+ } elsif ($postcode =~ /^(SW|SE)/) {
+ # London needs a category
+ $fields->{category} = "Street sign";
}
if ($council){
@@ -282,7 +285,7 @@ sub do_report {
my $messages = english_fms_messages();
my $x_coord = 3287;
my $y_coord = 1112;
- submit_report($postcode, $x_coord, $y_coord, 530375.920751842, 179501.524003048, 1, undef, $messages, '');
+ submit_report($postcode, $x_coord, $y_coord, 530268, 179545, 1, undef, $messages, '');
# Check that the report is now available through the AJAX interface
$wth->browser_get($base_url . "/ajax?sx=$x_coord;sy=$y_coord;x=$x_coord;y=$y_coord;all_pins=");
@@ -295,7 +298,7 @@ sub do_update {
my $messages = english_fms_messages();
my $x_coord = 3287;
my $y_coord = 1112;
- submit_report($postcode, $x_coord, $y_coord, 530375.920751842, 179501.524003048, 1, undef, $messages, '');
+ submit_report($postcode, $x_coord, $y_coord, 575794, 156256, 1, undef, $messages, '');
$wth->browser_follow_link(text => 'view the problem on this site');
$wth->browser_submit_form(with_fields => { name => name_n(1),
rznvy => email_n(1),