David Albers
11/02/2020, 9:03 PMAdam Powell
11/02/2020, 9:30 PMDavid Albers
11/02/2020, 10:21 PMjava.lang.IllegalStateException: Functions that involve synchronization (Assertions, Actions, Synchronization; e.g. assertIsSelected(), doClick(), runOnIdle()) cannot be run from the main thread. Did you nest such a function inside runOnIdle {}, runOnUiThread {} or setContent {}?
Adam Powell
11/02/2020, 10:53 PMColton Idle
11/03/2020, 12:03 AMAdam Powell
11/03/2020, 12:14 AMContextAmbient.current.getSystemService(...)...
then that's a platform-specific composable 🙂Mini
12/17/2020, 7:28 PMDavid Albers
12/21/2020, 8:34 PMassertIsDisplayed()
(this) that I never figured out how to get working in Robolectric.allan.conda
12/23/2020, 4:21 PMDavid Albers
01/05/2021, 3:39 PMComposeUiRobolectricTestRunner
into my project. Then I set it as the runner for Robolectric tests like so:
@RunWith(ComposeUiRobolectricTestRunner::class)
class YourComposableTest {
....
hope that helps!