Skip to content
This repository has been archived by the owner on Apr 24, 2021. It is now read-only.

Commit

Permalink
Moving to if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Gaunt committed Apr 4, 2016
1 parent 297e0ca commit 5ff544d
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions test/automated-suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,15 +59,10 @@ describe('Test Propel', function() {
const queueUnitTest = browserInfo => {
it(`should pass all tests in ${browserInfo.prettyName}`, () => {

switch (browserInfo.seleniumBrowserId) {
case 'firefox':
const ffProfile = new seleniumFirefox.Profile();
ffProfile.setPreference('security.turn_off_all_security_so_that_viruses_can_take_over_this_computer', true);
browserInfo.seleniumOptions.setProfile(ffProfile);
break;
default:
// NOOP
break;
if (browserInfo.seleniumBrowserId === 'firefox') {
const ffProfile = new seleniumFirefox.Profile();
ffProfile.setPreference('security.turn_off_all_security_so_that_viruses_can_take_over_this_computer', true);
browserInfo.seleniumOptions.setProfile(ffProfile);
}

globalDriverReference = browserInfo.getSeleniumDriver();
Expand Down

0 comments on commit 5ff544d

Please sign in to comment.