eharris128 / cypress-gwt-example

Example repo showing how to use Cypress with Cucumber Feature files

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

πŸ€– cypress-gwt-example

Example repo showing how to use Cypress with Cucumber Feature files

A companion to Callum Silcock's talk on "How to get your product owners to write your functional tests" this repo gives you some simple examples on how to connect Cypress with Cucumber and test an app

πŸ™Š The Talk

If you missed the talk check out:

😎 How It Works

Using cypress and the cypress-cucumber-preprocessor plugin we setup .feature files in the integration folder that reads the step definitions in the step_definitions folder to generate our Cypress tests.

These then test our served App

πŸ”₯Running Locally

# Clone me
git clone git@github.com:csi-lk/cypress-gwt-example.git
# Install dependencies
yarn
# Build the app
yarn build
# Open Cypress
yarn test
# Run Cypress in headless mode 🀯
yarn test:ci

πŸ›‚ CI

Have setup a workflow in the Actions tab above that should give you a good idea of how it operates in a CI environment

If you're interested, I've also connected the cypress dashboard so you can check also check the videos of it in action.


If you have any questions please raise an issue above

<3 Callum Silcock

About

Example repo showing how to use Cypress with Cucumber Feature files

License:MIT License


Languages

Language:JavaScript 67.5%Language:CSS 16.4%Language:HTML 10.6%Language:Gherkin 5.4%