File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed
Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change 1+ # https://github.com/badeball/cypress-cucumber-preprocessor/issues/749
2+
3+ Feature : retried steps
4+ Scenario : forever failing
5+ Given additional Cypress configuration
6+ """
7+ {
8+ "retries": 2
9+ }
10+ """
11+ And a file named "cypress/e2e/a.feature" with:
12+ """
13+ Feature: a feature
14+ Scenario: a scenario
15+ Given a failing step
16+ """
17+ And a file named "cypress/support/step_definitions/steps.js" with:
18+ """
19+ const { Given } = require("@badeball/cypress-cucumber-preprocessor");
20+ Given("a failing step", function() {
21+ throw "some error"
22+ })
23+ """
24+ When I run cypress
25+ Then it fails
Original file line number Diff line number Diff line change @@ -735,7 +735,7 @@ export default function createTests(
735735 * Repopulate internal properties in case previous test is retried.
736736 */
737737 properties . testCaseStartedId = uuid ( ) ;
738- properties . remainingSteps = properties . allSteps ;
738+ properties . remainingSteps = [ ... properties . allSteps ] ;
739739 } ) ;
740740
741741 after ( function ( ) {
You can’t perform that action at this time.
0 commit comments