lgcyril / Cypress-Playwright

Repo containing Cypress and Playwright test cases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cypress-Playwright

This repository contains test cases for both Cypress and Playwright, allowing you to run tests using the same project.

Running Tests

Cypress Tests

  • 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

Playwright Tests

  • 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

Running Both Playwright and Cypress Tests

To execute both Playwright and Cypress tests simultaneously, make modifications in playwright.config.ts by changing the testDir to './cypress/e2e'.

Test Cases Location

All test cases are located in the folder cypress/e2e.

  • Cypress test cases are written in .js.
  • Playwright test cases are written in .ts.

Local Setup

To run tests on your local machine:

  1. Clone the repository.
  2. Run the following command after cloning: npm install

Version:

  1. Cypress Version : 13.6.1
  2. Playwright Version: 1.40.1

Screenshots:

image image image image

Reporting :

Allure Reporting - Cypress & Playwright

image

image

About

Repo containing Cypress and Playwright test cases


Languages

Language:JavaScript 66.0%Language:HTML 25.6%Language:TypeScript 6.6%Language:CSS 1.8%