mirror of
https://github.com/wassname/talk.git
synced 2026-07-06 05:17:19 +08:00
32 lines
609 B
JavaScript
32 lines
609 B
JavaScript
const embedStreamCommands = {
|
|
ready() {
|
|
return this
|
|
.waitForElementVisible('body', 2000)
|
|
;
|
|
},
|
|
login() {
|
|
return this
|
|
.waitForElementVisible('@signInButton')
|
|
.click('@signInButton')
|
|
.waitForElementVisible('@signInDialog');
|
|
}
|
|
};
|
|
|
|
export default {
|
|
commands: [embedStreamCommands],
|
|
elements: {
|
|
signInButton: {
|
|
selector: '#coralSignInButton'
|
|
},
|
|
signInDialog:{
|
|
selector: '#signInDialog'
|
|
},
|
|
commentBox: {
|
|
selector: '#commentBox'
|
|
},
|
|
postButton: {
|
|
selector: '#commentBox .coral-plugin-commentbox-button'
|
|
}
|
|
}
|
|
};
|