]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - client/e2e/src/utils.ts
Translated using Weblate (Portuguese (Brazil))
[github/Chocobozzz/PeerTube.git] / client / e2e / src / utils.ts
index e19da6402602bb885288ca250d2291e7d8f38d82..a9d30c03acdc7ff8632aa7aa9bf7e6a553617b1a 100644 (file)
@@ -1,11 +1,15 @@
 import { browser } from 'protractor'
 
 async function browserSleep (amount: number) {
-  if (await isIOS()) browser.ignoreSynchronization = false
+  const oldValue = await browser.waitForAngularEnabled()
+
+  // iOS does not seem to work with protractor
+  // https://github.com/angular/protractor/issues/2840
+  if (await isIOS()) browser.waitForAngularEnabled(true)
 
   await browser.sleep(amount)
 
-  if (await isIOS()) browser.ignoreSynchronization = true
+  if (await isIOS()) browser.waitForAngularEnabled(oldValue)
 }
 
 async function isMobileDevice () {