diff --git a/test/e2e/specs/05_banUser.js b/test/e2e/specs/05_banUser.js index 029957a48..3eaf7f5e3 100644 --- a/test/e2e/specs/05_banUser.js +++ b/test/e2e/specs/05_banUser.js @@ -107,4 +107,29 @@ module.exports = { .waitForElementVisible('@dropdownStatusActive') .click('@optionActive'); }, + 'admin logs out 2': (client) => { + client.page.admin().logout(); + }, + 'navigate to the embed stream 2': (client) => { + const embedStream = client.page.embedStream(); + + embedStream + .navigate() + .ready(); + }, + 'user logs in 2': (client) => { + const {testData: {user}} = client.globals; + const comments = client.page.embedStream().section.comments; + + comments + .openLoginPopup((popup) => popup.login(user)); + }, + 'user should be able to comment': (client) => { + const embedStream = client.page.embedStream(); + const comments = embedStream.section.comments; + + comments + .waitForElementPresent('@commentBoxTextarea') + .waitForElementPresent('@commentBoxPostButton'); + }, };