This repository contains test cases for both Cypress and Playwright, allowing you to run tests using the same project.
-
To run Cypress tests in headless mode, execute: npm run cypress-test-headless
-
To run Cypress tests in UI mode, execute: npm run cypress-test-ui
-
To run Cypress tests and get the allure report, execute: npm run cypress-test-with-report
-
To run Playwright tests in headless mode, execute: npm run playwright-test-headless
-
To run Playwright tests in UI mode, execute: npm run playwright-test-ui
-
To run Playwright tests and get the allure report, execute: npm run playwright-test-with-report
To execute both Playwright and Cypress tests simultaneously, make modifications in playwright.config.ts by changing the testDir
to './cypress/e2e'.
All test cases are located in the folder cypress/e2e
.
- Cypress test cases are written in
.js
. - Playwright test cases are written in
.ts
.
To run tests on your local machine:
- Clone the repository.
- Run the following command after cloning: npm install
- Cypress Version : 13.6.1
- Playwright Version: 1.40.1