https://github.com/arjunattam/playwright-experiment
https://github.com/arjunattam/playwright-experiment
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/arjunattam/playwright-experiment
- Owner: arjunattam
- Created: 2023-09-08T12:20:02.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-26T06:06:10.000Z (over 2 years ago)
- Last Synced: 2024-10-18T07:17:27.905Z (over 1 year ago)
- Language: TypeScript
- Size: 9.77 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Playwright experiment
This repo tests whether a user can book a demo slot in working hours PST through the 100ms website.
## Usage
### Repo setup
After git clone and changing the directory, run
```sh
npm i
# Install browser to test
npx playwright install chromium
```
### Run test
```sh
# Run test on desktop and mobile
# This command runs on GitHub Actions
npx playwright test
# Run test on mobile
npx playwright test --project=mobile
# Run test on desktop and with a headed browser (shows UI)
npx playwright test --project=desktop --headed
```
### See test report
Each test execution generates a video. Failed tests generate a [Playwright trace](http://playwright.dev/docs/trace-viewer-intro) (for debugging).
```sh
npx playwright show-report
```
For test runs on GitHub Actions, the videos can be downloaded from the [run summary page](https://github.com/arjunattam/playwright-experiment/actions/runs/6195975978).