From d20a9b7f684af8ca2e56e75798aab82d263432e5 Mon Sep 17 00:00:00 2001 From: Jolanda Verhoef Date: Thu, 16 Sep 2021 14:59:35 +0100 Subject: [PATCH] [ConfigSample] Change API level to 26 which is supported --- .github/workflows/TestConfigurationSample.yaml | 2 +- TestConfigurationSample/app/build.gradle | 4 ++-- .../testing/testconfigurationsample/MainActivityTests.kt | 4 ++-- .../testing/testconfigurationsample/TestDeviceAnnotations.kt | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/TestConfigurationSample.yaml b/.github/workflows/TestConfigurationSample.yaml index 7033f6779..14ce9b309 100644 --- a/.github/workflows/TestConfigurationSample.yaml +++ b/.github/workflows/TestConfigurationSample.yaml @@ -87,7 +87,7 @@ jobs: - name: Run regression tests working-directory: ${{ env.SAMPLE_PATH }} - run: ./gradlew -i pixel2api23DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi23 + run: ./gradlew -i pixel2api26DebugAndroidTest -Pandroid.testInstrumentationRunnerArguments.annotation=com.example.android.testing.testconfigurationsample.TestDeviceApi26 - name: Run large screen tests working-directory: ${{ env.SAMPLE_PATH }} diff --git a/TestConfigurationSample/app/build.gradle b/TestConfigurationSample/app/build.gradle index 25ed0e12c..ae10f975f 100644 --- a/TestConfigurationSample/app/build.gradle +++ b/TestConfigurationSample/app/build.gradle @@ -58,9 +58,9 @@ android { systemImageSource = "aosp" abi = "x86" } - pixel2api23(ManagedVirtualDevice) { + pixel2api26(ManagedVirtualDevice) { device = "Pixel 2" - apiLevel = 23 + apiLevel = 26 systemImageSource = "aosp" abi = "x86" } diff --git a/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/MainActivityTests.kt b/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/MainActivityTests.kt index 3ce37aa37..76c427890 100644 --- a/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/MainActivityTests.kt +++ b/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/MainActivityTests.kt @@ -66,8 +66,8 @@ class MainActivityTests { * * See the Github Actions setup of this project for an example. */ - @Test @TestDeviceApi23 - fun regressionTestKnownIssueApi23() { + @Test @TestDeviceApi26 + fun regressionTestKnownIssueApi26() { // Add instrumented tests here runBlocking { delay(10000) } Assert.assertTrue(true) diff --git a/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/TestDeviceAnnotations.kt b/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/TestDeviceAnnotations.kt index c2bf8b87e..fab97f5c5 100644 --- a/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/TestDeviceAnnotations.kt +++ b/TestConfigurationSample/app/src/androidTest/java/com/example/android/testing/testconfigurationsample/TestDeviceAnnotations.kt @@ -16,9 +16,9 @@ package com.example.android.testing.testconfigurationsample /** - * Annotate tests with this annotation when testing API 23 regression bugs. + * Annotate tests with this annotation when testing API 26 regression bugs. */ -annotation class TestDeviceApi23 +annotation class TestDeviceApi26 /** * Annotate tests with this annotation when testing large-screen specific features.