From 43a6a2392e538a760bb921b70ee07e69b9667814 Mon Sep 17 00:00:00 2001 From: Martin Schoeler Date: Tue, 16 May 2017 13:41:31 -0300 Subject: [PATCH] Fix the other tests failing due chimp update --- tests/pageobjects/main-content.page.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/pageobjects/main-content.page.js b/tests/pageobjects/main-content.page.js index beee3e77ed56..0a672a9eabbe 100644 --- a/tests/pageobjects/main-content.page.js +++ b/tests/pageobjects/main-content.page.js @@ -70,6 +70,7 @@ class MainContent extends Page { this.setTextToInput(text); this.sendBtn.click(); browser.waitUntil(function() { + browser.waitForVisible('.message:last-child .body', 5000); return browser.getText('.message:last-child .body') === text; }, 2000); } @@ -105,18 +106,21 @@ class MainContent extends Page { waitForLastMessageTextAttachmentEqualsText(text) { browser.waitUntil(function() { + browser.waitForVisible('.message:last-child .attachment-text', 5000); return browser.getText('.message:last-child .attachment-text') === text; }, 2000); } waitForLastMessageEqualsText(text) { browser.waitUntil(function() { + browser.waitForVisible('.message:last-child .body', 5000); return browser.getText('.message:last-child .body') === text; }, 4000); } waitForLastMessageUserEqualsText(text) { browser.waitUntil(function() { + browser.waitForVisible('.message:last-child .user-card-message:nth-of-type(2)', 5000); return browser.getText('.message:last-child .user-card-message:nth-of-type(2)') === text; }, 2000); }