- Node js -> v.16 or above
- VS Code
- Playwright Vs Code Extension (Optional)
Clone this repo and execute the next commands
Navigate to the folder and install the NPM packages
npm installInstall Playwright browsers and dependencies
npx playwright installAdd .env file with the next values:
BASE_URL='https://www.saucedemo.com'
USER_NAME=valid user in saucedemo
PASSWORD=password for sauce demo
LOCALE=locale to test. Valid values are: 'en-US', 'de-DE', 'es-MX'
Execute the next command to run your tests:
Run tests
npx playwright testRun the test with UI mode
npx playwright test --uiOr you can run with the Visual Code Extension
You can see the reporter on the GitHub Pages: