aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/utils.ts
diff options
context:
space:
mode:
Diffstat (limited to 'client/e2e/src/utils.ts')
-rw-r--r--client/e2e/src/utils.ts8
1 files changed, 6 insertions, 2 deletions
diff --git a/client/e2e/src/utils.ts b/client/e2e/src/utils.ts
index e19da6402..a9d30c03a 100644
--- a/client/e2e/src/utils.ts
+++ b/client/e2e/src/utils.ts
@@ -1,11 +1,15 @@
1import { browser } from 'protractor' 1import { browser } from 'protractor'
2 2
3async function browserSleep (amount: number) { 3async function browserSleep (amount: number) {
4 if (await isIOS()) browser.ignoreSynchronization = false 4 const oldValue = await browser.waitForAngularEnabled()
5
6 // iOS does not seem to work with protractor
7 // https://github.com/angular/protractor/issues/2840
8 if (await isIOS()) browser.waitForAngularEnabled(true)
5 9
6 await browser.sleep(amount) 10 await browser.sleep(amount)
7 11
8 if (await isIOS()) browser.ignoreSynchronization = true 12 if (await isIOS()) browser.waitForAngularEnabled(oldValue)
9} 13}
10 14
11async function isMobileDevice () { 15async function isMobileDevice () {