diff --git a/client/coral-admin/src/routes/Moderation/graphql.js b/client/coral-admin/src/routes/Moderation/graphql.js index 8bb6349d8..31d124d93 100644 --- a/client/coral-admin/src/routes/Moderation/graphql.js +++ b/client/coral-admin/src/routes/Moderation/graphql.js @@ -298,6 +298,11 @@ export function handleCommentChange( notificationShown = true; }; + console.log('root.me', root.me); + console.log('comment.status_history', comment.status_history); + + debugger; + Object.keys(queueConfig).forEach(queue => { // Comment should be placed in queue. if (nextQueues.indexOf(queue) >= 0) { diff --git a/test/e2e/page_objects/popup.js b/test/e2e/page_objects/popup.js index 824546e5b..cb35563f5 100644 --- a/test/e2e/page_objects/popup.js +++ b/test/e2e/page_objects/popup.js @@ -5,7 +5,9 @@ module.exports = { return this.waitForElementVisible('body'); }, login(user) { - return this.setValue('@emailInput', user.email) + return this.waitForElementVisible('@emailInput') + .setValue('@emailInput', user.email) + .waitForElementVisible('@passwordInput') .setValue('@passwordInput', user.password) .waitForElementVisible('@signIn') .waitForElementVisible('@loginButton') diff --git a/test/e2e/specs/05_banUser.js b/test/e2e/specs/05_banUser.js index 51055a180..6a5dfb12c 100644 --- a/test/e2e/specs/05_banUser.js +++ b/test/e2e/specs/05_banUser.js @@ -86,7 +86,7 @@ module.exports = { .waitForElementVisible('@firstRow') .waitForElementVisible('@dropdownStatus') .click('@dropdownStatus') - .waitForElementVisible('@dropdownStatusActive') + .waitForElementVisible('@optionRemoveBan') .click('@optionRemoveBan'); }, 'admin logs out 2': client => { @@ -154,8 +154,7 @@ module.exports = { const moderate = client.page.admin().section.moderate; moderate.click('@firstCommentApprove'); - - // TODO: check why this fails. - // .waitForElementNotPresent('@firstComment'); + client.pause(1000000); + moderate.waitForElementNotPresent('@firstComment'); }, };