From e78f17460f997fdef389ab9b4e65d51004efe6ba Mon Sep 17 00:00:00 2001 From: Chi Vinh Le Date: Tue, 19 Dec 2017 14:27:34 +0100 Subject: [PATCH] Fix wrong spec --- test/e2e/specs/04_userStatus.js | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/test/e2e/specs/04_userStatus.js b/test/e2e/specs/04_userStatus.js index 5a7593e53..41540db65 100644 --- a/test/e2e/specs/04_userStatus.js +++ b/test/e2e/specs/04_userStatus.js @@ -94,6 +94,14 @@ module.exports = { comments .waitForElementVisible('@restrictedMessageBox'); }, + 'user should not be able to comment': (client) => { + const embedStream = client.page.embedStream(); + const comments = embedStream.section.comments; + + comments + .waitForElementNotPresent('@commentBoxTextarea') + .waitForElementNotPresent('@commentBoxPostButton'); + }, 'user picks another username': (client) => { const embedStream = client.page.embedStream(); const comments = embedStream.section.comments; @@ -106,12 +114,12 @@ module.exports = { .click('@suspendedAccountSubmitButton') .waitForElementNotPresent('@suspendedAccountInput'); }, - 'user should not be able to comment': (client) => { + 'user should be able to comment': (client) => { const embedStream = client.page.embedStream(); const comments = embedStream.section.comments; comments - .waitForElementNotPresent('@commentBoxTextarea') - .waitForElementNotPresent('@commentBoxPostButton'); + .waitForElementVisible('@commentBoxTextarea') + .waitForElementVisible('@commentBoxPostButton'); }, };