E2e with nightwatch and browserstack

This commit is contained in:
Chi Vinh Le
2017-10-11 19:50:13 +07:00
parent 0225d38560
commit 3abbe3119d
7 changed files with 948 additions and 71 deletions
+6
View File
@@ -0,0 +1,6 @@
{
"extends": "@coralproject/eslint-config-talk",
"rules": {
"indent": "off"
}
}
+17
View File
@@ -0,0 +1,17 @@
const uuid = require('uuid');
const {murmur3} = require('murmurhash-js');
module.exports = {
'Creates a new asset': (client) => {
const assetTitle = `test@${murmur3(uuid.v4())}`;
client
.url(`${client.launchUrl}/assets/title/${assetTitle}`)
.assert.title(assetTitle)
.waitForElementVisible('#coralStreamEmbed_iframe', 1000)
.frame('coralStreamEmbed_iframe')
.waitForElementVisible('.talk-stream-tab-container', 1000)
.frameParent()
.end();
}
};