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
- Host: GitHub
- URL: https://github.com/ebazhanov/cypress-cucumber
- Owner: Ebazhanov
- Created: 2021-07-23T11:44:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-10-30T15:53:57.000Z (about 4 years ago)
- Last Synced: 2025-04-13T09:51:52.724Z (8 months ago)
- Topics: cucumber, cypress, cypress-example, example, javascript, poc
- Language: JavaScript
- Homepage:
- Size: 119 KB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
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