This project uses Playwright for end-to-end testing.
Install the project dependencies using:
npm install -D @playwright/test@latest
npx playwright install --with-deps
npm installTo run all Playwright tests:
npx playwright testThis project follows a data-driven approach, where test input data is provided through a CSV file.
- Each test row in the CSV represents a separate test case.
- The tests are dynamically generated based on the contents of the CSV.
If any column value in the CSV is missing or empty, a default value will be automatically filled from the default.json file.
This ensures:
- Test consistency even when data is incomplete.
- Reduced chance of test failure due to missing fields.
- Add your test data to
testdata.csv. - Define fallback/default values in
default.json. - Run tests as usual:
npx playwright testOr, run only selected tests:
TEST_IDS=L001,L002 npx playwright test