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

Commit 0ef89856 authored by Jordan Demeulenaere's avatar Jordan Demeulenaere
Browse files

Fix Compose motion tests

Bug: 322324387
Test: atest AnchoredSizeTest
Flag: TEST_ONLY
Change-Id: I558b752abb4d1bc3a8e13a082b03b0fb15d603f2
parent e80f8c06
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -138,10 +138,13 @@ fun MotionTestRule<ComposeToolkit>.recordTransition(
    toScene: SceneKey = TestScenes.SceneB,
): RecordedMotion {
    val state =
        toolkit.composeContentTestRule.runOnUiThread {
            MutableSceneTransitionLayoutState(
                fromScene,
                transitions { from(fromScene, to = toScene, builder = transition) }
            )
        }

    return recordMotion(
        content = { play ->
            LaunchedEffect(play) {