From 83744b62b5c55a04a1d513cec2916976f2dafb58 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 11 Dec 2018 11:53:06 +0000 Subject: 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. --- bin/browser-tests | 1 + 1 file changed, 1 insertion(+) (limited to 'bin/browser-tests') 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; -- cgit v1.2.3