Skip to content

Commit

Permalink
e2e fix for sauce labs (#9)
Browse files Browse the repository at this point in the history
1. add explict wait for date picker clear button
  • Loading branch information
PinkyJie committed Mar 2, 2016
1 parent e246b3c commit 4af25b4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/test/e2e/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ class E2EHelper {
clearDate (input, picker) {
// trigger date picker modal
browser.actions().click(input).perform();
this.waitForElementToShow('.picker__clear');
// click Clear button
$('.picker__clear').click();
// check if hide
Expand Down

0 comments on commit 4af25b4

Please sign in to comment.