This repository holds example of E2E test in Playwright framework
Test script is here π test-example.spec.ts
Test scenario (requirement) for E2E test is here: test-requirements
Install dependencies by running in terminal:
npm install
(only for 1st time installation) run below command to download required browsers:
npx playwright install
Run in terminal:
npx playwright test
.
βββ tests # E2E spec
βββ fixtures # test data for specs
When test run finishes, file structure will be extended for these generated folders:
.
βββ ...
βββ playwright-report # contains html report with details like test steps, attached test code and embedded video
βββ test-results # contains generated data like recorded video if test failed
βββ ...
You can adjust Playwright behaviour with many configuration options in following file: playwright.config.ts
For more information about Playwright framework, check out official documentation