summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/functional/safetycenter/safetycenteractivity/src/android/safetycenter/functional/ui/SafetyCenterActivityTest.kt16
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 93f5708b2..b1c39e563 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
@@ -1127,18 +1127,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(