📦 Prerequisites
Ensure all dependencies are installed before running tests.
npm install
🚀 Running Tests
Run All Tests
Execute all tests using the default Playwright configuration.
npm test
Run Tests in Headed Mode
Run tests with the browser UI visible, useful for observing test execution.
npm run test:headed
Run Tests in Debug Mode
Start tests with debugging tools enabled, including Playwright Inspector.
npm run test:debug
Run Tests with List Reporter (CI-Friendly)
Run tests with the list reporter, optimized for Continuous Integration (CI) environments.
npm run test:ci
Run Tests Serially
Execute tests using a single worker, ideal for debugging or handling non-parallel-safe tests.
npm run test:serial
Run Specific E2E Tests
Article Tests:
npm run test:article
Login Tests:
npm run test:login
Run Specific API Tests
Login API Tests:
npm run test:apiLogin
Article API Tests:
npm run test:apiArticle
View HTML Test Report
Generate and view the Playwright HTML report summarizing test results.
npm run report
DmytroOleksiiuk/mate
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|