Skip to content

Commit 1956423

Browse files
committed
fixed multiple requirements of selenium-webdriver package
1 parent cf073e2 commit 1956423

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

packages/selenium-side-runner/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"glob": "^7.1.2",
3434
"global-npm": "^0.3.0",
3535
"jest-cli": "24.7.1",
36-
"jest-environment-selenium": "2.1.0",
36+
"jest-environment-selenium": "2.1.1",
3737
"jest-junit": "^6.3.0",
3838
"js-beautify": "^1.7.5",
3939
"js-yaml": "^3.13.1",

packages/selenium-side-runner/src/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ program
6565
'Proxy options to pass, for use with manual, pac and socks proxies'
6666
)
6767
.option(
68-
'--config, --config-file, --configuration-file [filepath]',
68+
'--config, --config-file [filepath]',
6969
'Use specified YAML file for configuration. (default: .side.yml)'
7070
)
7171
.option(
@@ -304,7 +304,7 @@ function runProject(project) {
304304
: 'beforeEach(() => {vars = {};});afterEach(async () => (cleanup()));'
305305
writeJSFile(
306306
path.join(projectPath, sanitizeFileName(suite.name)),
307-
`// This file was generated using Selenium IDE\nconst tests = require("./commons.js");${
307+
`jest.setMock('selenium-webdriver', webdriver);\n// This file was generated using Selenium IDE\nconst tests = require("./commons.js");${
308308
code.globalConfig
309309
}${suite.code}${cleanup}`
310310
)
@@ -318,7 +318,7 @@ function runProject(project) {
318318
sanitizeFileName(suite.name),
319319
sanitizeFileName(test.name)
320320
),
321-
`// This file was generated using Selenium IDE\nconst tests = require("../commons.js");${
321+
`jest.setMock('selenium-webdriver', webdriver);\n// This file was generated using Selenium IDE\nconst tests = require("../commons.js");${
322322
code.globalConfig
323323
}${test.code}`
324324
)

packages/selenium-side-runner/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3402,10 +3402,10 @@ jest-environment-node@^24.7.1:
34023402
jest-mock "^24.7.0"
34033403
jest-util "^24.7.1"
34043404

3405-
3406-
version "2.1.0"
3407-
resolved "https://registry.yarnpkg.com/jest-environment-selenium/-/jest-environment-selenium-2.1.0.tgz#f1bf4584b6d80fc2dbe48d147f79b8fca7154ca8"
3408-
integrity sha512-1P6y6326Py+b51JPGjaAqValZpK3qpP43sFpCjusDcz5iLOpeKzxzM33u9ErU3uBtL2ovElxe4Bkj2tiZ8km3Q==
3405+
3406+
version "2.1.1"
3407+
resolved "https://registry.yarnpkg.com/jest-environment-selenium/-/jest-environment-selenium-2.1.1.tgz#5f50bbc05ffc6b7d1e1c2d602fa912496d068250"
3408+
integrity sha512-4qThDy2Tpew8WofRyfFSptLOo62IdW+dFWCDcF4qOZ/70mrsPzXkyOYT1Njm7rigjRGkwEsYSaYMoH6fp94b2Q==
34093409

34103410
jest-get-type@^24.3.0:
34113411
version "24.3.0"

0 commit comments

Comments
 (0)