From 529c288a12117df498b03af0e39d4be28b642792 Mon Sep 17 00:00:00 2001 From: Ivan Kalinin Date: Thu, 3 Nov 2022 12:05:27 +0300 Subject: [PATCH] [tests] Accept iOS alerts in Mobitru healthcheck tests (#3320) --- .github/workflows/gradle.yml | 4 ++-- .../healthcheck/mobitru/android/suite.properties | 1 - .../healthcheck/mobitru/ios/suite.properties | 1 - .../mobile_app/MobitruHealthCheckMobileApp.story | 10 ++++------ 4 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/android/suite.properties delete mode 100644 vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/ios/suite.properties diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 226bfcdc63..a47b6f074a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -620,7 +620,7 @@ jobs: run: | if [[ -n $MOBITRU_USER && -n $MOBITRU_KEY ]]; then ./gradlew :vividus-tests:debugStories -Pvividus.configuration.environments= \ - -Pvividus.configuration.suites=system/mobile_app/healthcheck/mobitru/android \ + -Pvividus.configuration.suites=system/mobile_app/healthcheck/mobitru \ -Pvividus.configuration.profiles=mobitru,mobile_app/android \ -Pvividus.selenium.grid.username=${MOBITRU_USER} \ -Pvividus.selenium.grid.password=${MOBITRU_KEY} \ @@ -656,7 +656,7 @@ jobs: run: | if [[ -n $MOBITRU_USER && -n $MOBITRU_KEY ]]; then ./gradlew :vividus-tests:debugStories -Pvividus.configuration.environments= \ - -Pvividus.configuration.suites=system/mobile_app/healthcheck/mobitru/ios \ + -Pvividus.configuration.suites=system/mobile_app/healthcheck/mobitru \ -Pvividus.configuration.profiles=mobitru,mobile_app/ios \ -Pvividus.selenium.grid.username=${MOBITRU_USER} \ -Pvividus.selenium.grid.password=${MOBITRU_KEY} \ diff --git a/vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/android/suite.properties b/vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/android/suite.properties deleted file mode 100644 index 150b5eda7f..0000000000 --- a/vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/android/suite.properties +++ /dev/null @@ -1 +0,0 @@ -bdd.batch-1.meta-filters=groovy: !targetPlatform || targetPlatform.contains('android') diff --git a/vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/ios/suite.properties b/vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/ios/suite.properties deleted file mode 100644 index dc35038574..0000000000 --- a/vividus-tests/src/main/resources/properties/suite/system/mobile_app/healthcheck/mobitru/ios/suite.properties +++ /dev/null @@ -1 +0,0 @@ -bdd.batch-1.meta-filters=groovy: !targetPlatform || targetPlatform.contains('ios') diff --git a/vividus-tests/src/main/resources/story/system/mobile_app/MobitruHealthCheckMobileApp.story b/vividus-tests/src/main/resources/story/system/mobile_app/MobitruHealthCheckMobileApp.story index 69d16a98c0..d48babddb0 100644 --- a/vividus-tests/src/main/resources/story/system/mobile_app/MobitruHealthCheckMobileApp.story +++ b/vividus-tests/src/main/resources/story/system/mobile_app/MobitruHealthCheckMobileApp.story @@ -2,17 +2,15 @@ Scenario: Start the application Given I start mobile application Scenario: Decline pop-up -Meta: - @targetPlatform android When I save number of elements located `` to scenario variable `button` When I execute steps at most 5 times while variable `button` is = `1`: -|step | -|When I tap on element located by ``| +|step | +|When I tap on element located by `` | |When I save number of elements located `` to scenario variable `button`| Examples: -|buttonLocator | -|xpath(.//*[@text = 'CANCEL' or @resource-id='android:id/button2' or @content-desc='Close tips'])| +|buttonLocator | +|xpath(.//*[@text = 'CANCEL' or @resource-id='android:id/button2' or @content-desc='Close tips' or @name="Don’t Allow"])| Scenario: Validate application start