From 7790915421f916e239f196163d026a226ec1f48d Mon Sep 17 00:00:00 2001 From: Hillel Coren Date: Wed, 5 May 2021 00:15:48 +0300 Subject: [PATCH] Tests --- .github/workflows/test.yml | 5 ++--- test_driver/utils/common_actions.dart | 7 +++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4c3b7f170..9413520df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -21,9 +21,8 @@ jobs: strategy: matrix: device: - - "iPad Pro (14.4)" + - "iPhone 11 Pro (14.4)" - "iPad Pro (9.7-inch) (14.4)" - #- "iPhone 11 Pro (14.4)" fail-fast: false runs-on: macos-latest needs: test @@ -59,7 +58,7 @@ jobs: strategy: #set of different configurations of the virtual environment. matrix: - #api-level: [21, 29] + api-level: [21, 29] target: [default] needs: test steps: diff --git a/test_driver/utils/common_actions.dart b/test_driver/utils/common_actions.dart index d8fff3f7b..8bc9a122a 100644 --- a/test_driver/utils/common_actions.dart +++ b/test_driver/utils/common_actions.dart @@ -41,6 +41,13 @@ Future login(FlutterDriver driver, await driver.tap(find.byValueKey(localization.selfhostLogin)); } */ + + if (await isMobile(driver)) { + print('Login mobile...'); + } else { + print('Login desktop...'); + } + if (selfHosted) { print('Tap ' + localization.selfhosted.toUpperCase()); await driver.tap(find.text(localization.selfhosted.toUpperCase()));