https://github.com/manolo/chrome-tests
https://github.com/manolo/chrome-tests
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/manolo/chrome-tests
- Owner: manolo
- Created: 2022-10-21T09:06:36.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T07:48:14.000Z (almost 4 years ago)
- Last Synced: 2024-12-30T18:38:09.608Z (over 1 year ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### Running this project
- Install dependencies
```
npm i
```
- Open a terminal start server
```
node server.js
```
- Open UI in browser
- Visit http://localhost:8080
- Close the app
- See server logs
- Open browser in commandline
- Run this command
```
## For mac
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" 'http://localhost:8080'
## For linux
google-chrome 'http://localhost:8080'
```
- Close the app
- See server logs
- Open browser in commandline
- Run this command
```
## For mac
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --headless 'http://localhost:8080'
## For linux
google-chrome --headless 'http://localhost:8080'
```
- See server logs
- Run Visual tests using chromedriver (playwright)
- Run `node test.js`
- See server logs
- Run Visual tests in headless mode
- Run `node test.js --headless`
- See server logs