From 72a7b70158e9a7c01304c3af6d64f95c3c4a1641 Mon Sep 17 00:00:00 2001 From: Kelly Date: Thu, 8 Sep 2022 17:58:23 +0800 Subject: [PATCH] Delete SPA unit test lottie_displayed, because it fails online and only works offline on device. Test: manually test on device. Bug: 245691891 Change-Id: I0d99007bd1cd44b0d384a2ea587d3694fc630934 --- .../spa/widget/IllustrationTest.kt | 20 ------------------- 1 file changed, 20 deletions(-) diff --git a/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/IllustrationTest.kt b/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/IllustrationTest.kt index 5ac719a503f7e..54abec9ac0d7a 100644 --- a/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/IllustrationTest.kt +++ b/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/widget/IllustrationTest.kt @@ -65,26 +65,6 @@ class IllustrationTest { private val RawId = SemanticsPropertyKey("RawResId") private var SemanticsPropertyReceiver.rawId by RawId - @Test - fun lottie_displayed() { - val resId = R.raw.accessibility_shortcut_type_triple_tap - composeTestRule.setContent { - Illustration( - resId = resId, - resourceType = ResourceType.LOTTIE, - modifier = Modifier.semantics { rawId = resId } - ) - } - - fun hasRaw(@RawRes id: Int): SemanticsMatcher = - SemanticsMatcher.expectValue(RawId, id) - - val isIllustrationNode = hasAnyAncestor(hasRaw(resId)) - composeTestRule.onAllNodes(hasRaw(resId)) - .filterToOne(isIllustrationNode) - .assertIsDisplayed() - } - @Test fun empty_lottie_not_displayed() { val resId = R.raw.empty