Files
talk/tests/e2e/pages/embedStreamPage.js
T
Belen Curcio 428a62ffd4 tests
2016-12-18 11:31:27 -03:00

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'
}
}
};