This repository contains automated tests for the Cypress World App. Below are instructions on how to run these automated tests using Cypress.
-
Install Dependencies
Make sure you have Node.js installed (minimum version 12) along with npm.
npm install
-
Start Cypress World App
You can start the Cypress World App using the npm script.
npm run dev
The application will be available at: http://localhost:3000.
-
Create a Test User
Create a test user that will be used in the automated tests. Make sure you have the login credentials prepared.
-
Configure .env File
Create a
.env
file in the project's root directory and configure the environment variables:NAME=testuser PASSWORD=testpassword WRONG_NAME=wronguser WRONG_PASSWORD=wrongpassword
Replace
testuser
,testpassword
,wronguser
, andwrongpassword
with your test user's actual credentials.
To run the automated tests using Playwright, follow these steps:
-
Install Packages
npm install
-
Run Tests
Run Playwright tests using npx:
npx playwright tests