Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjammin4dayz/cypress-e2e-template
https://github.com/benjammin4dayz/cypress-e2e-template
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/benjammin4dayz/cypress-e2e-template
- Owner: benjammin4dayz
- License: mit
- Created: 2024-06-06T20:34:47.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-06-28T08:12:36.000Z (6 months ago)
- Last Synced: 2024-06-28T11:21:55.575Z (6 months ago)
- Language: JavaScript
- Size: 114 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Cypress e2e Template
A thoughtful project scaffold for writing Cypress e2e tests against multiple environments. I made it because I enjoy the challenge of building reasonable and conceptually scalable project architectures. In the process, I've learned a lot about Cypress and e2e testing!
Full disclaimer: I am not an e2e tester
## Project Structure
```
├───cypress
│ ├───e2e # Spec Workspace
│ ├───fixtures
│ └───support
│ ├───__template # App-specific workspace
│ │ ├───pages # Page object models
│ │ ├───scripts # App-specific logic and helpers
│ │ └───env.config.js # Resolved environment variables
│ └───global # Cypress commands and global hooks
└───cypress.env.json # Environment configuration and secrets
```## Getting Started
### Installation
1. Clone the repo
```bash
npx degit benjammin4dayz/cypress-e2e-template ez-e2e
cd ez-e2e
```2. Install dependencies
```bash
npm install
```### Usage
1. Create `cypress.env.json` and configure your testing environment.
2. Start Cypress
```bash
npm start
```3. Write & Run tests