aboutsummaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-12-11 11:53:06 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-12-12 16:46:37 +0000
commit83744b62b5c55a04a1d513cec2916976f2dafb58 (patch)
treefe547da2340552fb41192b7b161552891acc1dab /bin
parent640de422fb8db9c2fbc604dbb3674eb0cea99ba0 (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')
-rwxr-xr-xbin/browser-tests1
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;