mirror of
https://github.com/wassname/talk.git
synced 2026-07-12 18:32:58 +08:00
Adding preconfiguration script.
This commit is contained in:
@@ -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,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();
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user