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.
Apply Feature configuration tags to suite
- Loading branch information
Showing
4 changed files
with
55 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ lib/version.ts | |
|
||
# Temporary directory for test execution | ||
tmp/ | ||
node_modules |
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,31 @@ | ||
Feature: suite only options | ||
Scenario: suite specific test isolation | ||
Given additional Cypress configuration | ||
""" | ||
{ | ||
"e2e": { | ||
"testIsolation": true | ||
} | ||
} | ||
""" | ||
And a file named "cypress/e2e/a.feature" with: | ||
""" | ||
@testIsolation(false) | ||
Feature: a feature | ||
Scenario: a scenario | ||
Given a step | ||
Scenario: another scenario | ||
Then another step | ||
""" | ||
And a file named "cypress/support/step_definitions/steps.js" with: | ||
""" | ||
const { Given, Then } = require("@badeball/cypress-cucumber-preprocessor"); | ||
Given("a step", () => { | ||
cy.get("body").invoke('html', 'Hello world') | ||
}); | ||
Given("another step", () => { | ||
cy.contains("Hello world").should("exist"); | ||
}); | ||
""" | ||
When I run cypress | ||
Then it passes |
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