Improve demo video

This commit is contained in:
Thomas Nordquist
2019-05-01 02:37:06 +02:00
parent ebdfac39eb
commit 10e37624a5
4 changed files with 22 additions and 17 deletions

View File

@@ -57,12 +57,7 @@ async function doStuff() {
// Wait for Username input to be visible
let inputField = undefined
let start = Date.now()
let maxWaitDuration = 30000
while ((!inputField || !inputField.isExisting) && ((Date.now() - start) < maxWaitDuration)) {
inputField = await browser.$(`//label[contains(text(), "Username")]/..//input`)
}
await browser.$('//label[contains(text(), "Username")]/..//input')
const scenes = new SceneBuilder()
await scenes.record('connect', async () => {
await connectTo('127.0.0.1', browser)
@@ -70,10 +65,10 @@ async function doStuff() {
})
await scenes.record('topic_updates', async () => {
await showText('Topic overview', 2000, browser, 'top')
await sleep(2000)
await showText('Indicate topic updates', 2000, browser, 'bottom')
await sleep(3000)
await showText('Topic overview', 1000, browser, 'top')
await sleep(1000)
await showText('Indicate topic updates', 1000, browser, 'middle')
await sleep(1000)
})
await scenes.record('numeric_plots', async () => {
@@ -139,7 +134,7 @@ async function doStuff() {
await scenes.record('customize_subscriptions', async () => {
await sleep(2000)
await disconnect(browser)
await showText('Customize Subscriptions', 3000, browser, 'top')
await showText('Customize Subscriptions', 1000, browser, 'top')
await showAdvancedConnectionSettings(browser)
})