git clone https://github.com/externships/ex7
cd ex7
npm install
npx playwright install
When there are updates to the main
branch, follow these steps to ensure your local environment is up to date:
- Fetch the latest changes from the remote repository:
git fetch origin
- Checkout the
main
branch:
git checkout main
- Pull the latest changes:
git pull origin main
- Install any new dependencies:
npm install
To run all tests across all browsers:
npm run test:all
or
npx playwright test
To run all tests in the Chromium browser:
npm run test chrome
To run all tests in the Firefox browser:
npm run test firefox
To run all tests in the WebKit browser (Safari):
npm run test safari
To run a specific test file (e.g., example.spec.ts
) in a specific browser (e.g., chrome
):
npm run test example.spec.ts chrome
To view the test report after running tests:
npm run report
or
npx playwright show-report
Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API. Playwright is built to enable cross-browser web automation that is ever-green, capable, reliable and fast.
Linux | macOS | Windows | |
---|---|---|---|
Chromium 127.0.6533.57 | ✅ | ✅ | ✅ |
WebKit 17.4 | ✅ | ✅ | ✅ |
Firefox 128.0 | ✅ | ✅ | ✅ |
Headless execution is supported for all browsers on all platforms. Check out system requirements for details.