Gabriel
11/03/2020, 7:48 PMandroidTestImplementation("androidx.ui:ui-test:$COMPOSE_VERSION")
but it won't import anything or even mark it as not being imported, I'm not sure what I'm missingGabriel
11/03/2020, 7:48 PMUnresolved reference: onNodeWithText
Gabriel
11/03/2020, 7:55 PMimport androidx.compose.ui.test.onNodeWithText
but not sure what package to depend on for it, if I try androidTestImplementation("androidx.compose.ui:ui-test:$COMPOSE_VERSION")
then I get Failed to resolve: androidx.compose.ui:ui-test:1.0.0-alpha06
Adam Powell
11/03/2020, 7:58 PMGabriel
11/03/2020, 8:00 PMimport androidx.ui.test.onNodeWithText
?
If I import that then it gets removed when I optimise importsGabriel
11/03/2020, 8:04 PMUnresolved reference. None of the following candidates is applicable because of receiver type mismatch:
public fun ComposeTestRule.onNodeWithText(text: String, ignoreCase: Boolean = ..., useUnmergedTree: Boolean = ...): SemanticsNodeInteraction defined in androidx.ui.test
Gabriel
11/03/2020, 8:04 PMonNodeWithText("No data available").assertIsDisplayed()
Adam Powell
11/03/2020, 8:04 PMComposeTestRule
?Gabriel
11/03/2020, 8:07 PMAdam Powell
11/03/2020, 8:08 PMGabriel
11/03/2020, 8:09 PMGabriel
11/03/2020, 8:13 PMGabriel
11/03/2020, 8:15 PMOussama Haff.
11/03/2020, 11:23 PM