File tree Expand file tree Collapse file tree
packages/test/harness/src/host/dev Expand file tree Collapse file tree 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
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
122128Run ` npm run browser ` . It will open a new browser window to http://localhost:5001/**tests**/html/ . Then, navigate to the test file.
123129
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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' ] )
You can’t perform that action at this time.
0 commit comments