-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...mber-integration-tests/sample_cucumber_tests/parallelWithMultipleDefinition/testExpect.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,8 @@ | ||
const {Then} = require('@cucumber/cucumber'); | ||
|
||
|
||
Then('I check if webdriver is present and contains text', async function() { | ||
browser.globals.test_calls++; | ||
|
||
await browser.expect.element('#webdriver').text.to.contain('xx'); | ||
}); |
12 changes: 12 additions & 0 deletions
12
...mber-integration-tests/sample_cucumber_tests/parallelWithMultipleDefinition/testSample.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,12 @@ | ||
const {Given, Then} = require('@cucumber/cucumber'); | ||
|
||
Given('I navigate to localhost', function() { | ||
|
||
return browser.navigateTo('http://localhost'); | ||
}); | ||
|
||
Then('I check if webdriver is present', function() { | ||
|
||
return browser.assert.elementPresent('#webdriver'); | ||
}); | ||
|
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