https://github.com/martincastroalvarez/cypress-tests
Testing automation using Cypress
https://github.com/martincastroalvarez/cypress-tests
Last synced: about 1 year ago
JSON representation
Testing automation using Cypress
- Host: GitHub
- URL: https://github.com/martincastroalvarez/cypress-tests
- Owner: MartinCastroAlvarez
- Created: 2023-10-31T10:47:37.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-31T14:47:08.000Z (over 2 years ago)
- Last Synced: 2025-02-14T17:31:06.647Z (over 1 year ago)
- Language: TypeScript
- Size: 2.33 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cypress-tests
Testing automation using Cypress

## Tests
|Test|Purpose|
|--|---|
|[site/status.cy.js](./cypress/e2e/site/status.cy.js)|Site is Ok.|
|[auth/validations.cy.js](./cypress/e2e/auth/validations.cy.js)|The login perform shows the proper error messages.|
|[auth/login.cy.js](./cypress/e2e/auth/login.cy.js)|The login form works properly.|
|[dashboard/modal.cy.js](./cypress/e2e/dashboard/modal.cy.js)|The dashboard sidebar works successfully.|
## Instructions
Set environment variables:
```bash
export CYPRESS_BASE_URL='http://localhost:3000'
export CYPRESS_USERNAME='lorem-ipsum'
export CYPRESS_PASSWORD='lorem-ipsum'
```
Open Cypress console:
```bash
npx cypress open --e2e --browser chrome
```
Run Cypress in headless mode:
```bash
npx cypress run --browser chrome
```