From 1acea467839a47c34f0d110df8ee135b4ef2f596 Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Thu, 16 Jul 2020 15:50:11 +0100 Subject: [PATCH] Fixed usingWorker test --- apps/remix-ide/test-browser/tests/usingWebWorker.test.js | 4 ++-- package.json | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/remix-ide/test-browser/tests/usingWebWorker.test.js b/apps/remix-ide/test-browser/tests/usingWebWorker.test.js index ba7b10c6ab..8a4854b884 100644 --- a/apps/remix-ide/test-browser/tests/usingWebWorker.test.js +++ b/apps/remix-ide/test-browser/tests/usingWebWorker.test.js @@ -29,7 +29,7 @@ module.exports = { .clickLaunchIcon('fileExplorers') .addFile('browser/basic.sol', sources[0]['browser/basic.sol']) .clickLaunchIcon('solidity') - .execute(() => { + .execute(function() { document.getElementById('nightlies').checked = true }) .noWorkerErrorFor('soljson-v0.3.4+commit.7dab8902.js') @@ -37,7 +37,7 @@ module.exports = { .noWorkerErrorFor('soljson-v0.6.8-nightly.2020.5.14+commit.a6d0067b.js') .noWorkerErrorFor('soljson-v0.6.0-nightly.2019.12.17+commit.d13438ee.js') .noWorkerErrorFor('soljson-v0.4.26+commit.4563c3fc.js') - .execute(() => { + .execute(function() { document.getElementById('nightlies').checked = false }) .end() diff --git a/package.json b/package.json index 92423e4080..962ac2c6db 100644 --- a/package.json +++ b/package.json @@ -64,6 +64,7 @@ "nightwatch_local_firefox": "nightwatch --config apps/remix-ide/nightwatch.js --env firefox", "nightwatch_local_chrome": "nightwatch --config apps/remix-ide/nightwatch.js --env chrome", "nightwatch_local_ballot": "nightwatch ./apps/remix-ide/test-browser/tests/ballot.test.js --config apps/remix-ide/nightwatch.js --env chrome ", + "nightwatch_local_usingWorker": "nightwatch ./apps/remix-ide/test-browser/tests/usingWebWorker.test.js --config apps/remix-ide/nightwatch.js --env chrome ", "nightwatch_local_libraryDeployment": "nightwatch ./apps/remix-ide/test-browser/tests/libraryDeployment.test.js --config apps/remix-ide/nightwatch.js --env chrome ", "nightwatch_local_solidityImport": "nightwatch ./apps/remix-ide/test-browser/tests/solidityImport.test.js --config apps/remix-ide/nightwatch.js --env chrome ", "nightwatch_local_recorder": "nightwatch ./apps/remix-ide/test-browser/tests/recorder.test.js --config apps/remix-ide/nightwatch.js --env chrome ",