mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
çhanges
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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')
|
||||
|
||||
@@ -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');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user