Skip to content

Commit 435c2b9

Browse files
authored
Minor browser test improvements (#177)
- Rename run.mjs to run-browser.mjs - Print browser versions for each test
1 parent f121640 commit 435c2b9

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@
2020
"lint:check": "eslint **/*.{js,mjs,jsx,ts,tsx}",
2121
"pretty:check": "prettier --check ./",
2222
"format:check": "npm run pretty:check && npm run lint:check",
23-
"test:chrome": "node tests/run.mjs --browser chrome",
24-
"test:firefox": "node tests/run.mjs --browser firefox",
25-
"test:safari": "node tests/run.mjs --browser safari",
26-
"test:edge": "node tests/run.mjs --browser edge",
23+
"test:chrome": "node tests/run-browser.mjs --browser chrome",
24+
"test:firefox": "node tests/run-browser.mjs --browser firefox",
25+
"test:safari": "node tests/run-browser.mjs --browser safari",
26+
"test:edge": "node tests/run-browser.mjs --browser edge",
2727
"test:shell": "npm run test:v8 && npm run test:jsc && npm run test:spidermonkey",
2828
"test:v8": "node tests/run-shell.mjs --shell v8",
2929
"test:jsc": "node tests/run-shell.mjs --shell jsc",

tests/run.mjs renamed to tests/run-browser.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ async function runEnd2EndTest(name, params) {
7777

7878
async function testEnd2End(params) {
7979
const driver = await new Builder().withCapabilities(capabilities).build();
80+
const driverCapabilities = await driver.getCapabilities();
81+
logInfo(`Browser: ${driverCapabilities.getBrowserName()} ${driverCapabilities.getBrowserVersion()}`);
8082
const urlParams = Object.assign({
8183
worstCaseCount: 2,
8284
iterationCount: 3

0 commit comments

Comments
 (0)