Fix ui tests

This commit is contained in:
Thomas Nordquist
2019-04-30 15:16:18 +02:00
parent a1d3f32f73
commit 2a541a80dc
2 changed files with 8 additions and 5 deletions

View File

@@ -57,7 +57,7 @@ export async function moveToCenterOfElement(element: Element<void>, browser: Bro
const js = `window.demo.moveMouse(${targetX}, ${targetY}, ${duration});`
await browser.execute(js)
await sleep(duration)
await sleep(20, true)
await sleep(250, true)
await element.moveTo()
}