Adding preconfiguration script.

This commit is contained in:
David Jay
2016-11-16 18:31:23 -05:00
parent d389680224
commit a50a32ab66
2 changed files with 4 additions and 2 deletions
-1
View File
@@ -2,4 +2,3 @@ node_modules/selenium-standalone/bin/selenium-standalone install
export TALK_PORT=3011
export TALK_MONGO_URL='mongodb://localhost/talk_test'
npm start &
wait 2
+4 -1
View File
@@ -4,12 +4,15 @@ module.exports = {
'@tags': ['embed-stream', 'post'],
'User posts a comment': client => {
client.resizeWindow(1200, 800)
.url(`${client.globals.baseUrl}`)
.url(client.globals.baseUrl)
.frame('coralStreamIframe')
.waitForElementVisible('#commentBox', 1000)
.setValue('#commentBox .coral-plugin-commentbox-textarea', comment)
.click('#commentBox .coral-plugin-commentbox-button')
.waitForElementVisible('.comment', 1000)
.expect.element('.coral-plugin-comment').to.equal(comment);
},
after: client => {
client.end();
}
};