Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e40ab41b authored by omarmt's avatar omarmt
Browse files

Remove unnecessary useUnmergedTree from ElementTest

See usage
https://developer.android.com/develop/ui/compose/testing/apis#unmerged

Test: atest ElementTest
Bug: 330200163
Flag: com.android.systemui.scene_container
Change-Id: I8bc615e60701b7883ffad2598f11d52c8b5e2481
parent 9a42e828
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -729,7 +729,7 @@ class ElementTest {
                onAnimatedFloat = { animatedFloat = it },
            )

        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag, useUnmergedTree = true)
        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag)
        fooElement.assertTopPositionInRootIsEqualTo(0.dp)
        val transition = assertThat(state.transitionState).isTransition()
        assertThat(transition).isNotNull()
@@ -809,7 +809,7 @@ class ElementTest {
        }

        assertThat(state.transitionState).isIdle()
        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag, useUnmergedTree = true)
        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag)
        fooElement.assertTopPositionInRootIsEqualTo(0.dp)

        // Swipe by half of verticalSwipeDistance.
@@ -929,7 +929,7 @@ class ElementTest {
                onAnimatedFloat = { animatedFloat = it },
            )

        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag, useUnmergedTree = true)
        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag)
        fooElement.assertTopPositionInRootIsEqualTo(0.dp)
        assertThat(animatedFloat).isEqualTo(100f)

@@ -985,7 +985,7 @@ class ElementTest {
                onAnimatedFloat = { animatedFloat = it },
            )

        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag, useUnmergedTree = true)
        val fooElement = rule.onNodeWithTag(TestElements.Foo.testTag)
        fooElement.assertTopPositionInRootIsEqualTo(0.dp)
        assertThat(animatedFloat).isEqualTo(100f)