mirror of
https://github.com/wassname/talk.git
synced 2026-07-22 13:00:29 +08:00
E2e with nightwatch and browserstack
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "@coralproject/eslint-config-talk",
|
||||
"rules": {
|
||||
"indent": "off"
|
||||
}
|
||||
}
|
||||
@@ -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();
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user