Automated e2e tests
- Playwright/TypeScript
- Page Object pattern
npm install
- tests - contains e2e test files
- pages - contains the page selectors and uses them to create methods such as create something new, edit something, delete something etc.
- fixtures - allows to put reusable behavior such as custom commands or global overrides to extended test function that you want applied and available to all of your tests
- playwright.config.ts - This file is used to store any configuration values you supply.
- Run all tests with an open browser
"npm run pw:headed"
,
- Run all tests without a browser
"npm run pw:headless"
- Run tests in UI mode
"npm run pw:ui"
- Run all tests on a desktop browser in headed mode
"pw:headed:chromium"
- Run all tests on a desktop browser in headless mode
"pw:headless:chromium"
- Run all tests on a browser with mobile viewport in headed mode
"pw:headed:mobile"
- Run all tests on a browser with mobile viewport in headless mode
"pw:headless:mobile"