This commit is contained in:
okbel
2018-05-28 16:20:20 -03:00
parent 4299c373ba
commit b15a306c43
3 changed files with 11 additions and 5 deletions
@@ -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) {
+3 -1
View File
@@ -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')
+3 -4
View File
@@ -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');
},
};