From cfc3458e8f8206e2a08b077c710f3e058b805ba0 Mon Sep 17 00:00:00 2001 From: Juanfran Date: Wed, 28 Oct 2015 11:32:55 +0100 Subject: [PATCH] close joyride fix when you only run one suite --- e2e/utils/common.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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); + } + }); };