nitrog42
06/07/2021, 2:44 PMfun myTest() {
...
composeTestRule.onNodeWithText(text).assertIsDisplayed()
}
when the text is usually from a strings.xml resources, which way should be used ? a hardcoded text (but it means a different tests for each language) ? or getting the strings through a context and pass it to methods ? What is the best way to get a context in the test then ?