aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/e2e/src/utils/common.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-13 15:49:47 +0200
committerChocobozzz <me@florianbigard.com>2023-07-17 11:31:46 +0200
commite29221f855a7135bcfb45720e3600c7401939abb (patch)
treeb5c5e98e8c7f5e7c82688da891a723d1357c4a21 /client/e2e/src/utils/common.ts
parent9684bc959ecc2ec8407aaf36d054c7e000991141 (diff)
downloadPeerTube-e29221f855a7135bcfb45720e3600c7401939abb.tar.gz
PeerTube-e29221f855a7135bcfb45720e3600c7401939abb.tar.zst
PeerTube-e29221f855a7135bcfb45720e3600c7401939abb.zip
Fix e2e tests
Diffstat (limited to 'client/e2e/src/utils/common.ts')
-rw-r--r--client/e2e/src/utils/common.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/client/e2e/src/utils/common.ts b/client/e2e/src/utils/common.ts
index eb5f6b450..b04fe47f3 100644
--- a/client/e2e/src/utils/common.ts
+++ b/client/e2e/src/utils/common.ts
@@ -8,6 +8,12 @@ function isMobileDevice () {
8 return platformName === 'android' || platformName === 'ios' 8 return platformName === 'android' || platformName === 'ios'
9} 9}
10 10
11function isAndroid () {
12 const platformName = (browser.capabilities['platformName'] || '').toLowerCase()
13
14 return platformName === 'android'
15}
16
11function isSafari () { 17function isSafari () {
12 return browser.capabilities['browserName'] && 18 return browser.capabilities['browserName'] &&
13 browser.capabilities['browserName'].toLowerCase() === 'safari' 19 browser.capabilities['browserName'].toLowerCase() === 'safari'
@@ -41,6 +47,7 @@ export {
41 isMobileDevice, 47 isMobileDevice,
42 isSafari, 48 isSafari,
43 isIOS, 49 isIOS,
50 isAndroid,
44 waitServerUp, 51 waitServerUp,
45 go, 52 go,
46 browserSleep 53 browserSleep