diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-23 20:32:47 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2023-10-23 20:32:47 +0000 |
commit | e15b4cb24ffc1b9fe5fe04661e5830eeef57b5c7 (patch) | |
tree | 890b2ad241b851d4f926e2ed2ffc1ac9d0722bb0 | |
parent | 26211fb307dd50bacd9101346a59013c72359904 (diff) | |
parent | e961e2251977b2e1a8b2bc49886c8266b3f27bbf (diff) | |
download | Permission-e15b4cb24ffc1b9fe5fe04661e5830eeef57b5c7.tar.gz |
Snap for 10991014 from e961e2251977b2e1a8b2bc49886c8266b3f27bbf to android14-tests-release
Change-Id: I72621f80686c0e82fa7c43738bfc8642a2cf52bf
-rw-r--r-- | tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/SafetyCenterActivityTest.kt | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/SafetyCenterActivityTest.kt b/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/SafetyCenterActivityTest.kt index ce8a70fbe..fd6e93604 100644 --- a/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/SafetyCenterActivityTest.kt +++ b/tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/SafetyCenterActivityTest.kt @@ -1133,18 +1133,14 @@ class SafetyCenterActivityTest { context.launchSafetyCenterActivity { clickMoreIssuesCard() - val uiDevice = getUiDevice() - uiDevice.waitForIdle() - - // Verify cards initially expanded - waitExpandedIssuesDisplayed( - safetySourceTestData.criticalResolvingGeneralIssue, - safetySourceTestData.recommendationGeneralIssue, - safetySourceTestData.informationIssue - ) + // Not checking that all the cards are correctly expanded here, as it is already covered + // by other tests and makes this tests too slow otherwise. See b/288381777. + // We still check that the middle card title is displayed though, as this helps ensure + // the expansion did go through. + waitAllTextDisplayed(safetySourceTestData.recommendationGeneralIssue.title) // Device rotation to trigger usage of savedinstancestate via config update - uiDevice.rotate() + getUiDevice().rotate() // Verify cards remain expanded waitExpandedIssuesDisplayed( |