mirror of
https://github.com/wassname/talk.git
synced 2026-09-10 12:43:11 +08:00
tests
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
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'
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user