forked from Klaveness-Digital/cypress-cucumber-preprocessor
-
-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: scenario outline examples variable multiple times in single step
Merge pull request #211 from nipunsaini/fix-scenario-outline-multiple-vars
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
cypress/support/step_definitions/scenario_outline_multiple_vars.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/* global then, when */ | ||
|
||
let var1 = "var1"; | ||
let var2 = "var2"; | ||
|
||
when("I enter variable {string} and {string}", (v1, v2) => { | ||
var1 = v1; | ||
var2 = v2; | ||
}); | ||
|
||
then("I verify that both variables have {string} as value", value => { | ||
expect(value).to.equal(var1); | ||
expect(value).to.equal(var2); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters