https://github.com/tyler36/cypress-support
Support files for a Cypress setup
https://github.com/tyler36/cypress-support
cucumber cypress gherkin
Last synced: 3 months 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 (9 months ago)
- Default Branch: main
- Last Pushed: 2025-04-07T09:41:53.000Z (3 months ago)
- Last Synced: 2025-04-10T00:53:31.253Z (3 months ago)
- Topics: cucumber, cypress, gherkin
- Language: JavaScript
- Homepage:
- Size: 423 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}"
]
}
```