Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/martincastroalvarez/cypress-tests
Testing automation using Cypress
https://github.com/martincastroalvarez/cypress-tests
Last synced: 27 days 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 (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-31T14:47:08.000Z (about 1 year ago)
- Last Synced: 2023-10-31T15:43:04.764Z (about 1 year ago)
- Language: TypeScript
- Size: 2.33 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# cypress-tests
Testing automation using Cypress![wallpaper.jpg](wallpaper.jpg)
## 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
```