diff --git a/tests/e2e/pages/embedStreamPage.js b/tests/e2e/pages/embedStreamPage.js index 4737694b8..870306514 100644 --- a/tests/e2e/pages/embedStreamPage.js +++ b/tests/e2e/pages/embedStreamPage.js @@ -38,6 +38,12 @@ const embedStreamCommands = { return this .waitForElementVisible('@likeButton', 2000) .click('@likeButton'); + }, + visitorLikeComment() { + return this + .waitForElementVisible('@likeButton', 2000) + .click('@likeButton') + .waitForElementVisible('@signInDialog', 2000); } }; diff --git a/tests/e2e/tests/Visitor/LikeCommentTest.js b/tests/e2e/tests/Visitor/LikeCommentTest.js new file mode 100644 index 000000000..a4ced2ce8 --- /dev/null +++ b/tests/e2e/tests/Visitor/LikeCommentTest.js @@ -0,0 +1,19 @@ +module.exports = { + '@tags': ['like', 'comments', 'visitor'], + before: client => { + const embedStreamPage = client.page.embedStreamPage(); + + embedStreamPage + .navigate() + .ready(); + }, + 'Visitor tries to like a comment': client => { + const embedStreamPage = client.page.embedStreamPage(); + + embedStreamPage + .visitorLikeComment(); + }, + after: client => { + client.end(); + } +};