File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
packages/test/harness/src/host/dev Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,13 @@ We prefer using end-to-end visual regression tests (VRT) for pixel-perfect and w
117
117
118
118
### Running tests manually
119
119
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 `
121
127
122
128
Run ` npm run browser ` . It will open a new browser window to http://localhost:5001/**tests**/html/ . Then, navigate to the test file.
123
129
Original file line number Diff line number Diff line change 70
70
"precommit:typecheck:core" : " cd packages && cd core && npm run precommit:typecheck" ,
71
71
"precommit:typecheck:fluent-theme" : " cd packages && cd fluent-theme && npm run precommit:typecheck" ,
72
72
"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:*\" " ,
74
74
"start:api" : " cd packages && cd api && npm start" ,
75
75
"start:bundle" : " cd packages && cd bundle && npm start" ,
76
76
"start:component" : " cd packages && cd component && npm start" ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ async function main() {
23
23
const hostIP = await findHostIP ( ) ;
24
24
const localIP = await findLocalIP ( ) ;
25
25
26
- const service = await new ChromeServiceBuilder ( './chromedriver.exe ' )
26
+ const service = await new ChromeServiceBuilder ( './chromedriver' )
27
27
. addArguments ( '--allowed-ips' , localIP )
28
28
. setHostname ( hostIP )
29
29
. setStdio ( [ 'ignore' , 'ignore' , 'ignore' ] )
You can’t perform that action at this time.
0 commit comments