forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
Description
Seems bundled features breaks step resolution where there is more than one instance of a matching step
Steps to reproduce:
Updated the cypress-cucumber-example project to include
cypress-cucumber-preprocessor: ^1.15.1
Added All.features file to cypress/integration folder
npx cypress run --spec cypress/integration/All.features
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 3.3.0 │
│ Browser: Electron 61 (headless) │
│ Specs: 1 found (All.features) │
│ Searched: cypress/integration/All.features │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: All.features... (1 of 1)
The Google
✓ Opening a Google network page (1128ms)
✓ Different kind of opening (3074ms)
The Facebook
✓ Opening a social network page (2442ms)
1) Different kind of opening
The Twitter
✓ Opening Twitter (3343ms)
✓ Opening Twitter again (3009ms)
5 passing (32s)
1 failing
1) The Facebook Different kind of opening:
CypressError: Timed out retrying: expected 'Facebook – log in or sign up' to include 'Google'
at Object.cypressErr (https://www.facebook.com/__cypress/runner/cypress_runner.js:83139:11)
at Object.throwErr (https://www.facebook.com/__cypress/runner/cypress_runner.js:83104:18)
at Object.throwErrByPath (https://www.facebook.com/__cypress/runner/cypress_runner.js:83131:17)
at retry (https://www.facebook.com/__cypress/runner/cypress_runner.js:76579:16)
at https://www.facebook.com/__cypress/runner/cypress_runner.js:68565:18
at tryCatcher (https://www.facebook.com/__cypress/runner/cypress_runner.js:132036:23)
at Promise._settlePromiseFromHandler (https://www.facebook.com/__cypress/runner/cypress_runner.js:130054:31)
at Promise._settlePromise (https://www.facebook.com/__cypress/runner/cypress_runner.js:130111:18)
at Promise._settlePromise0 (https://www.facebook.com/__cypress/runner/cypress_runner.js:130156:10)
at Promise._settlePromises (https://www.facebook.com/__cypress/runner/cypress_runner.js:130231:18)
at Async._drainQueue (https://www.facebook.com/__cypress/runner/cypress_runner.js:126960:16)
at Async._drainQueues (https://www.facebook.com/__cypress/runner/cypress_runner.js:126970:10)
at Async.drainQueues (https://www.facebook.com/__cypress/runner/cypress_runner.js:126844:14)
at <anonymous>
(Results)
┌────────────────────────────┐
│ Tests: 6 │
│ Passing: 5 │
│ Failing: 1 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 1 │
│ Video: true │
│ Duration: 32 seconds │
│ Spec Ran: All.features │
└────────────────────────────┘
(Screenshots)
- /Users/jcundill/code/cypress-cucumber-example/cypress/screenshots/All.features/The Facebook -- Different kind of opening (failed).png (1280x720)
(Video)
- Started processing: Compressing to 32 CRF
- Finished processing: /Users/jcundill/code/cypress-cucumber-example/cypress/videos/All.features.mp4 (6 seconds)
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✖ All.features 00:32 6 5 1 - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
1 of 1 failed (100%) 00:32 6 5 1 - -