Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tyler36/cypress-support
Support files for a Cypress setup
https://github.com/tyler36/cypress-support
cucumber cypress gherkin
Last synced: 5 days ago
JSON representation
Support files for a Cypress setup
- Host: GitHub
- URL: https://github.com/tyler36/cypress-support
- Owner: tyler36
- License: gpl-3.0
- Created: 2024-10-15T07:22:19.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2025-02-14T08:16:45.000Z (7 days ago)
- Last Synced: 2025-02-14T09:23:01.708Z (7 days ago)
- Topics: cucumber, cypress, gherkin
- Language: JavaScript
- Homepage:
- Size: 223 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cypress Support
- [Overview](#overview)
- [Install](#install)
- [Support Commands](#support-commands)
- [Step Definitions](#step-definitions)## Overview
This repository contains helper commands for use with Cypress.
## Install
1. Require the package via GitHub
```shell
npm install https://github.com/tyler36/cypress-support
```### Support Commands
1. Import commands in to Cypress's `e2e.js` file. Default location: `cypress/support/e2e.js`
```js
import 'cypress-support/src/commands/commands'
```1. Add/update `cypress/fixtures/selector.json` to include an "error" selector.
```json
{
"error": ".error"
}
```### Step Definitions
1. Add a `.cypress-cucumber-preprocessorrc.json` and update it to point to all step definitions:
```json
{
"stepDefinitions": [
"cypress/support/step_definitions/**/*.{js,ts}",
"node_modules/cypress-support/src/step_definitions/**/*.{js,ts}"
]
}
```