- course https://jaktestowac.pl/course/playwright-wprowadzenie/
- test site
https://demo-bank.vercel.app/
If link broken check first lesson for update: https://jaktestowac.pl/lesson/pw1s01l01/
- check
NodeJS
version
node -v
- new project with Playwright:
npm init playwright@latest
- record tests for given site
npx playwright codegen https://demo-bank.vercel.app/
- run tests without browser GUI:
npx playwright test
- run test with browser GUI:
npx playwright test --headed
- viewing report
npx playwright show-report
- config file
playwright.config.ts
- disabling browsers, i.e. Firefox:
// { // name: 'firefox', // use: { // ...devices['Desktop Firefox'], // }, // },