Skip to content

Commit

Permalink
Remove Espresso.onIdle for now (it seems no effect now)
Browse files Browse the repository at this point in the history
  • Loading branch information
takahirom committed Dec 14, 2024
1 parent 3bb4ce4 commit d766c55
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.ComposeView
import androidx.compose.ui.platform.ViewRootForTest
import androidx.test.core.app.ActivityScenario
import androidx.test.espresso.Espresso
import java.io.File


Expand Down Expand Up @@ -103,9 +102,6 @@ private fun ActivityScenario<out ComponentActivity>.captureRoboImage(

onActivity { activity ->
activity.setContent(content = { content() })

// Views needs to be laid out before we can capture them
Espresso.onIdle()
captureScreenIfMultipleWindows(
file = file,
roborazziOptions = roborazziOptions,
Expand Down

0 comments on commit d766c55

Please sign in to comment.