mirror of
https://github.com/wassname/talk.git
synced 2026-06-28 22:04:50 +08:00
34 lines
750 B
JavaScript
34 lines
750 B
JavaScript
const embedStreamCommands = {
|
|
url: function () {
|
|
return `${this.api.launchUrl}/admin`;
|
|
},
|
|
ready() {
|
|
return this
|
|
.waitForElementVisible('body', 2000);
|
|
},
|
|
approveComment() {
|
|
return this
|
|
.waitForElementVisible('@moderationList')
|
|
.waitForElementVisible('@approveButton')
|
|
.click('@approveButton');
|
|
}
|
|
};
|
|
|
|
module.exports = {
|
|
commands: [embedStreamCommands],
|
|
elements: {
|
|
moderationList: {
|
|
selector: '#moderationList'
|
|
},
|
|
banButton: {
|
|
selector: '#moderationList .actions:first-child .ban'
|
|
},
|
|
rejectButton: {
|
|
selector: '#moderationList .actions:first-child .reject'
|
|
},
|
|
approveButton: {
|
|
selector: '#moderationList .actions:first-child .approve'
|
|
}
|
|
}
|
|
};
|