Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/haite4/cypress-test-task
cypress end-to-end tests https://cloud.cypress.io/projects/y5nty9/runs/2
https://github.com/haite4/cypress-test-task
cypress-dashboard cypress-io cypress-reporter
Last synced: 27 days ago
JSON representation
cypress end-to-end tests https://cloud.cypress.io/projects/y5nty9/runs/2
- Host: GitHub
- URL: https://github.com/haite4/cypress-test-task
- Owner: haite4
- Created: 2024-07-18T10:59:37.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T11:09:57.000Z (6 months ago)
- Last Synced: 2024-07-23T09:45:46.818Z (6 months ago)
- Topics: cypress-dashboard, cypress-io, cypress-reporter
- Language: JavaScript
- Homepage:
- Size: 85.9 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cypress-task
## Summary
This repository includes 11 automated test cases written using the Cypress framework and JavaScript. The tests verify the functionality of elements on the main, login, and register pages of the website [ RealWorld.](https://demo.realworld.io/#/). These tests ensure that critical elements and features of the website are working as expected.
## Requirements
- Node.js v14 or higher
- npm (Node Package Manager)
- Cypress## Step to install
1. Clone the repository:
```sh
git clone https://github.com/haite4/cypress-test-task.git
```
2. Navigate to the project directory:
```sh
cd cypress-test-task
```
3. Install dependencies:
```sh
npm install cypress --save-dev
npm install
```## Steps to Launch
1. **Run all Cypress tests in headless mode**:
```sh
npm run cypress:run
```2. **Run tests with a specific browser**:
- For Chrome:
```sh
npm run test:chrome
```
- For Firefox:
```sh
npm run test:firefox
```
- For Edge:
```sh
npm run test:edge
```3. **Open Cypress Test Runner for interactive testing**:
```sh
npm run cypress:open
```
This command will open the Cypress Test Runner, allowing you to run and debug tests interactively in the Cypress GUI.
4. **Run tests for specific pages**:
- **Login Page Tests**:
```sh
npm run test:login:run
```
- **Main Page Tests**:
```sh
npm run test:main:run
```
- **Register Page Tests**:
```sh
npm run test:register:run
```