Skip to content

Commit ad2148c

Browse files
committed
Create profile directory only for Chrome
1 parent 656876a commit ad2148c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/testSelenium.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ suite('selenium', function() {
5454
.then(function(newServer) {
5555
server = newServer;
5656

57-
var profilePath = temp.mkdirSync('marco');
58-
59-
var profile = new firefox.Profile(profilePath);
57+
var profile = new firefox.Profile();
6058
profile.setPreference('security.turn_off_all_security_so_that_viruses_can_take_over_this_computer', true);
6159
profile.setPreference('extensions.checkCompatibility.nightly', false);
6260
// Only allow installation of third-party addons from the user's profile dir (needed to block the third-party
@@ -72,7 +70,7 @@ suite('selenium', function() {
7270
var chromeOptions = new chrome.Options()
7371
.setChromeBinaryPath(chromeBinaryPath)
7472
.addArguments('--no-sandbox')
75-
.addArguments('user-data-dir=' + profilePath);
73+
.addArguments('user-data-dir=' + temp.mkdirSync('marco'));
7674

7775
var builder = new webdriver.Builder()
7876
.forBrowser('firefox')

0 commit comments

Comments
 (0)