From d9df38fc3a5d91f91fb6686c846f3b3a8a65dcd6 Mon Sep 17 00:00:00 2001 From: Benjamin Goering Date: Tue, 28 Feb 2017 19:31:13 +0800 Subject: [PATCH] fix e2e tests with .comment selector that avoids hidden dialog --- test/e2e/tests/EmbedStreamTests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/e2e/tests/EmbedStreamTests.js b/test/e2e/tests/EmbedStreamTests.js index 2da2340f3..fc550be47 100644 --- a/test/e2e/tests/EmbedStreamTests.js +++ b/test/e2e/tests/EmbedStreamTests.js @@ -95,10 +95,12 @@ module.exports = { client.resizeWindow(1200, 800) .url(client.globals.baseUrl) .frame('coralStreamEmbed_iframe'); + // Post a comment client.waitForElementVisible('.coral-plugin-commentbox-button', 2000) .setValue('.coral-plugin-commentbox-textarea', mockComment) .click('.coral-plugin-commentbox-button') + // Post a reply .waitForElementVisible('.embed__stream .coral-plugin-replies-reply-button', 5000) .click('.embed__stream .coral-plugin-replies-reply-button') @@ -106,6 +108,7 @@ module.exports = { .setValue('#replyText', mockReply) .click('.embed__stream .coral-plugin-replies-textarea .coral-plugin-commentbox-button') .waitForElementVisible('.embed__stream .reply', 20000) + // Verify that it appears .assert.containsText('.embed__stream .reply', mockReply); done();