From e29221f855a7135bcfb45720e3600c7401939abb Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 13 Jul 2023 15:49:47 +0200 Subject: Fix e2e tests --- client/e2e/src/utils/common.ts | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'client/e2e/src/utils') 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 () { return platformName === 'android' || platformName === 'ios' } +function isAndroid () { + const platformName = (browser.capabilities['platformName'] || '').toLowerCase() + + return platformName === 'android' +} + function isSafari () { return browser.capabilities['browserName'] && browser.capabilities['browserName'].toLowerCase() === 'safari' @@ -41,6 +47,7 @@ export { isMobileDevice, isSafari, isIOS, + isAndroid, waitServerUp, go, browserSleep -- cgit v1.2.3