diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-11 11:53:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2018-12-12 16:46:37 +0000 |
commit | 83744b62b5c55a04a1d513cec2916976f2dafb58 (patch) | |
tree | fe547da2340552fb41192b7b161552891acc1dab /bin/browser-tests | |
parent | 640de422fb8db9c2fbc604dbb3674eb0cea99ba0 (diff) |
Activate test_mode on JS testing.
This is so front-end tests will not try and send email, or
call Gaze. Various co-ordinates have to be updated because
the default zoom level of the map has now changed.
Diffstat (limited to 'bin/browser-tests')
-rwxr-xr-x | bin/browser-tests | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/browser-tests b/bin/browser-tests index 2d4ee09ac..c663e56af 100755 --- a/bin/browser-tests +++ b/bin/browser-tests @@ -98,6 +98,7 @@ sub run { my $c = Test::MockModule->new('FixMyStreet::Cobrand::FixMyStreet'); $c->mock('enable_category_groups', sub { 1 }); # Child, run the server on port 3001 + FixMyStreet->test_mode(1); # So email doesn't try to send local $ENV{FIXMYSTREET_APP_DEBUG} = 0; require Plack::Runner; my $runner = Plack::Runner->new; |