mirror of
https://github.com/wassname/talk.git
synced 2026-08-14 12:50:17 +08:00
Use TALK_ROOT_URL, global timeout, other improvements
This commit is contained in:
@@ -1,6 +1,13 @@
|
||||
const uuid = require('uuid');
|
||||
const {murmur3} = require('murmurhash-js');
|
||||
|
||||
const iframeId = 'coralStreamEmbed_iframe';
|
||||
|
||||
const $ = {
|
||||
streamEmbedIframe: `#${iframeId}`,
|
||||
streamTabContainer: '.talk-stream-tab-container',
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
'Creates a new asset': (client) => {
|
||||
const assetTitle = `test@${murmur3(uuid.v4())}`;
|
||||
@@ -8,9 +15,9 @@ module.exports = {
|
||||
client
|
||||
.url(`${client.launchUrl}/assets/title/${assetTitle}`)
|
||||
.assert.title(assetTitle)
|
||||
.waitForElementVisible('#coralStreamEmbed_iframe', 1000)
|
||||
.frame('coralStreamEmbed_iframe')
|
||||
.waitForElementVisible('.talk-stream-tab-container', 1000)
|
||||
.waitForElementVisible($.streamEmbedIframe)
|
||||
.frame(iframeId)
|
||||
.waitForElementVisible($.streamTabContainer)
|
||||
.frameParent()
|
||||
.end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user