From 12a71fa11718d0a7863456075975a815273ca86a Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Mon, 30 Oct 2017 13:11:41 +0100 Subject: [PATCH] Wait before click --- test/e2e/page_objects/embedStream.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/e2e/page_objects/embedStream.js b/test/e2e/page_objects/embedStream.js index 76065ba5e..2ee8b31fd 100644 --- a/test/e2e/page_objects/embedStream.js +++ b/test/e2e/page_objects/embedStream.js @@ -23,11 +23,13 @@ module.exports = { embed: { commands: [{ getProfileSection: function() { + this.waitForElementVisible('@profileTabButton'); this.click('@profileTabButton'); this.expect.section('@profile').to.be.present; return this.section.profile; }, getCommentsSection: function() { + this.waitForElementVisible('@commentsTabButton'); this.click('@commentsTabButton'); this.expect.section('@comments').to.be.present; return this.section.comments;