Skip to content

Commit 3c5c640

Browse files
prachifyOEvgeny
andauthored
added cross env support for npm start and chromedriver support for macOS (#5449)
* added cross env support for npm start and chromedriver support for macOS * Fix indentation in CONTRIBUTING.md --------- Co-authored-by: Eugene <[email protected]>
1 parent 438c779 commit 3c5c640

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/CONTRIBUTING.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,13 @@ We prefer using end-to-end visual regression tests (VRT) for pixel-perfect and w
117117

118118
### Running tests manually
119119

120-
Download [ChromeDriver](https://sites.google.com/a/chromium.org/chromedriver/downloads) and extract to the project root.
120+
Download OS-specific version of [ChromeDriver](https://googlechromelabs.github.io/chrome-for-testing/) and extract to the project root.
121+
122+
For MacOS
123+
124+
Give execute permission: `chmod +x ./chromedriver`
125+
126+
Remove quarantine flag: `xattr -d com.apple.quarantine ./chromedriver`
121127

122128
Run `npm run browser`. It will open a new browser window to http://localhost:5001/**tests**/html/. Then, navigate to the test file.
123129

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"precommit:typecheck:core": "cd packages && cd core && npm run precommit:typecheck",
7171
"precommit:typecheck:fluent-theme": "cd packages && cd fluent-theme && npm run precommit:typecheck",
7272
"prepare": "husky",
73-
"start": "NODE_OPTIONS=--no-deprecation concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
73+
"start": "cross-env NODE_OPTIONS=--no-deprecation concurrently --kill-others --prefix-colors \"auto\" \"npm:start:*\"",
7474
"start:api": "cd packages && cd api && npm start",
7575
"start:bundle": "cd packages && cd bundle && npm start",
7676
"start:component": "cd packages && cd component && npm start",

packages/test/harness/src/host/dev/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ async function main() {
2323
const hostIP = await findHostIP();
2424
const localIP = await findLocalIP();
2525

26-
const service = await new ChromeServiceBuilder('./chromedriver.exe')
26+
const service = await new ChromeServiceBuilder('./chromedriver')
2727
.addArguments('--allowed-ips', localIP)
2828
.setHostname(hostIP)
2929
.setStdio(['ignore', 'ignore', 'ignore'])

0 commit comments

Comments
 (0)