From c3b2eb5a98670fcbea74d2ad329ea162d3c524e8 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 18 Oct 2017 09:17:05 -0300 Subject: [PATCH 1/2] Using respect instead of like reaction --- test/e2e/page_objects/embedStream.js | 2 +- test/e2e/specs/03_embedStream.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/e2e/page_objects/embedStream.js b/test/e2e/page_objects/embedStream.js index 8573235d4..76065ba5e 100644 --- a/test/e2e/page_objects/embedStream.js +++ b/test/e2e/page_objects/embedStream.js @@ -42,7 +42,7 @@ module.exports = { commentBoxTextarea: '#commentText', commentBoxPostButton: '.talk-plugin-commentbox-button', firstCommentContent: '.talk-stream-comment.talk-stream-comment-level-0 .talk-stream-comment-content', - likeButton: '.talk-stream-comment.talk-stream-comment-level-0 .talk-stream-comment-footer .talk-plugin-like-button' + respectButton: '.talk-stream-comment.talk-stream-comment-level-0 .talk-stream-comment-footer .talk-plugin-respect-button' }, sections: { profile: { diff --git a/test/e2e/specs/03_embedStream.js b/test/e2e/specs/03_embedStream.js index 0b448a5f9..43299b909 100644 --- a/test/e2e/specs/03_embedStream.js +++ b/test/e2e/specs/03_embedStream.js @@ -112,8 +112,8 @@ module.exports = { .getEmbedSection(); embed - .waitForElementVisible('@likeButton') - .click('@likeButton'); + .waitForElementVisible('@respectButton') + .click('@respectButton'); const profile = embed .getProfileSection(); From 86e5e5e955423e4c468a47fc9551a946e0d5e734 Mon Sep 17 00:00:00 2001 From: Belen Curcio Date: Wed, 18 Oct 2017 09:19:32 -0300 Subject: [PATCH 2/2] Adding wait for a button selector --- test/e2e/specs/03_embedStream.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/specs/03_embedStream.js b/test/e2e/specs/03_embedStream.js index 43299b909..030bc6f86 100644 --- a/test/e2e/specs/03_embedStream.js +++ b/test/e2e/specs/03_embedStream.js @@ -134,6 +134,7 @@ module.exports = { .getEmbedSection(); embed + .waitForElementVisible('@commentsTabButton') .click('@commentsTabButton') .waitForElementVisible('@logoutButton') .click('@logoutButton');