Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/benjammin4dayz/bookcars-e2e
https://github.com/benjammin4dayz/bookcars-e2e
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/benjammin4dayz/bookcars-e2e
- Owner: benjammin4dayz
- License: mit
- Created: 2024-06-26T12:49:41.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-22T03:01:13.000Z (5 months ago)
- Last Synced: 2024-07-22T20:20:07.617Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 253 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bookcars e2e
## 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
git clone https://github.com/benjammin4dayz/bookcars-e2e.git
cd bookcars-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
## Cypress Commands
### `login(where: 'frontend'|'backend', username?: string, password?: string)`
- Login helper; pre-loaded command with environment credentials. Can be set manually