An open API service indexing awesome lists of open source software.

https://github.com/ebazhanov/cypress-cucumber

cypress + cucumber example
https://github.com/ebazhanov/cypress-cucumber

cucumber cypress cypress-example example javascript poc

Last synced: 8 months ago
JSON representation

cypress + cucumber example

Awesome Lists containing this project

README

          

# Cypress + cucumber

Project structure
-----------------
```
Cypress
│── integration
│ ├── PlanA-data.json
│ └── PlanB-data.json
├── integration
│ ├── lendico
│ │ └── lendico.tests.js
│ ├── pages
│ │ ├── CompanyInformationSection
│ │ ├── CompanyRepresentativesSection
│ │ ├── LoanCalculatorSection
│ │ ├── LoanSection
│ │ └── SubmitSections
│ └── lendico.feature
```

The list of tests:

```
Feature: Exploring Cucumber + cypress

Background:
Given user browser authorization

Scenario Outline: Plan A - apply for loan
When selected "" for "" years and clicks `Start request` button
And prefilled Company information section ""
And prefilled Personal data section ""
And customer accepts all checkboxes and clicks Submit button
Then redirects to Confirmation page with correctly shown data "" entered by the customer

Examples:
| amount | years | jsonFileName |
| 400.000 | 5 | PlanA |

Scenario Outline: Plan B 1.1 - display general validation error
When prefilled Company information section ""
And customer accepts all checkboxes and clicks Submit button
Then shows validation general error message "Nicht alle Felder wurden korrekt...."

Examples:
| jsonFileName |
| PlanB |

Scenario Outline: Plan B 1.2 - calculates monthly and interest rate
When selected "" for "" years and clicks `Start request` button
Then shows monthly rate "" and interest rate "" with disabled amount field and duration dropdown

Examples:
| amount | years | monthlyRate | interestRate |
| 10.000 | 2 | 0,00 € | 1,99 % |
```

### How to run the tests:
- `$ yarn cypress:open` if you want to run feature file manually
- `$ yarn cypress:run` will run tests automatically