-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: migration errors in wait methods (#65)
* chore: update versions * fix migration issues * fix: fix incorrect specs * fix: incorrect migration of wait methods
- Loading branch information
Showing
3 changed files
with
12 additions
and
7 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
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
/** | ||
* Wait for the given element to become visible | ||
* @param {String} elem Element selector | ||
* @param {String} falseCase Whether or not to expect a visible or hidden | ||
* @param {String} reverse Whether or not to expect a visible or hidden | ||
* state | ||
* | ||
* @todo merge with waitfor | ||
*/ | ||
module.exports = (elem, falseCase) => { | ||
module.exports = (elem, reverse) => { | ||
/** | ||
* Maximum number of milliseconds to wait for | ||
* @type {Int} | ||
*/ | ||
const ms = 10000; | ||
elem.waitForDisplayed(ms, !!falseCase); | ||
elem.waitForDisplayed(ms, {reverse: reverse}); | ||
}; |
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