diff --git a/e2e/utils/common.js b/e2e/utils/common.js index 61a3fc76..41a5f051 100644 --- a/e2e/utils/common.js +++ b/e2e/utils/common.js @@ -385,9 +385,12 @@ common.uploadImagePath = function() { }; common.closeJoyride = function() { - browser.waitForAngular(); - - $('.introjs-skipbutton').click(); - - browser.sleep(200); + $('.introjs-skipbutton').isPresent().then((present) => { + console.log(present); + if (present) { + browser.waitForAngular(); + $('.introjs-skipbutton').click(); + browser.sleep(600); + } + }); };