Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cjatkinson/chris-cypress-cucumber-demo
Cypress + Cucumber demo by Chris Atkinson
https://github.com/cjatkinson/chris-cypress-cucumber-demo
cucumber cypress cypress-io cypress-tests typescript
Last synced: 18 days ago
JSON representation
Cypress + Cucumber demo by Chris Atkinson
- Host: GitHub
- URL: https://github.com/cjatkinson/chris-cypress-cucumber-demo
- Owner: cjatkinson
- Created: 2024-03-06T01:04:55.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T15:24:10.000Z (10 months ago)
- Last Synced: 2024-11-08T09:03:43.770Z (2 months ago)
- Topics: cucumber, cypress, cypress-io, cypress-tests, typescript
- Language: TypeScript
- Homepage:
- Size: 92.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# chris-cypress-cucumber-demo 🌲🥒
## Description
This is a Cypress demo implementation with Cucumber by [Chris Atkinson](mailto:[email protected]).
The framework implements [Cucumber BDD](https://github.com/cucumber/cucumber-js) for easy test authoring and maintenance. The UI tests are designed to evaluate four criteria of pages.
* Are all of the interactive elements present on the page?
* Can the page successfully render a front-end error?
* Can the page successfully render a back-end error?
* Can the primary functionality of the page be achieved?## Installation
1. Clone this repository:
```bash
git clone [email protected]:cjatkinson/chris-cypress-cucumber-demo.git
```2. Install the dependencies:
```bash
cd chris-cypress-cucumber-demo
npm i
```3. Test the installation:
```bash
npm run test
```The framework will run the test suite against Chrome. The last test is the suite fails intentionally to demonstrate some of the implementaion features. If you run into issues, please let me know [via email](mailto:[email protected]).
## Usage
The framework can be run in a variety of modes, abstracted as scripts in `node_modules`.
```bash
# run the framework in headless mode
npm run test
``````bash
# run the framework in UI mode
npm run test:ui
```## TODO
* Implement API test suite.
* Implement TravisCI.