Skip to content

Commit fdce093

Browse files
committed
fix: issues with running e2e tests with chromedriver needing chrome 74
1 parent 28702da commit fdce093

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646
"serve": "http-server",
4747
"serve:silent": "http-server --silent",
4848
"webdriver": "webdriver-manager",
49-
"test": "npm-run-all \"webdriver -- update\" build:prod --parallel -r \"webdriver -- start --quiet\" test:ci",
49+
"webdriver:update": "webdriver-manager update --versions.chrome 73.0.3683.68",
50+
"test": "npm-run-all \"webdriver-update\" build:prod --parallel -r \"webdriver -- start --quiet\" test:ci",
5051
"test:unit": "jest --config ./test/jestConfig.json test/unit",
5152
"test:e2e": "jest --runInBand --config ./test/jestConfig.json test/specs",
5253
"test:ci": "run-p -r serve:silent test:unit test:e2e",

test/capabilities.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import {Capability, Browser} from 'selenium-webdriver';
22

3-
43
const capabilities = {
54
[Capability.PLATFORM]: 'WINDOWS',
6-
[Capability.BROWSER_NAME]: Browser.CHROME
5+
[Capability.BROWSER_NAME]: Browser.CHROME,
6+
[Capability.VERSION]: 73,
77
};
88

99
// browserstack specific capabilities - https://www.browserstack.com/automate/capabilities
@@ -14,7 +14,7 @@ if (process.env.CI) {
1414
capabilities.os = 'WINDOWS';
1515
capabilities.os_version = '10';
1616
capabilities.browser = Browser.CHROME;
17-
capabilities.browser_verison = '60';
17+
capabilities.browser_version = '73';
1818
}
1919

2020
export default capabilities;

test/jestConfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"setupTestFrameworkScriptFile": "./setupTests.js",
2+
"setupFilesAfterEnv": ["./setupTests.js"],
33
"testMatch": ["**/*.js"],
44
"globals": {
55
"__baseUrl__": "http://localhost:8080"

0 commit comments

Comments
 (0)