We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ComposeTestRule can provide functionality for awaiting views what can be useful for many test cases. However code below don't looks great to me.
ComposeTestRule
fun BaseNode<*>.waitFor(composeTestRule: ComposeTestRule, timeoutMillis: Long = 1_000) { composeTestRule.waitUntil(timeoutMillis) { try { this.delegate.interaction.semanticsNodeInteraction.assertExists() true } catch (e: AssertionError) { false } } }
Want to find a way how to do the same way but without composeTestRule reinjection to the function
At the end wanna have something like
ComposeScreen.onComposeScreen<MyScreen>(composeTestRule) { waitFor() heading { waitFor() hasText(it) } }
The text was updated successfully, but these errors were encountered:
As we have discussed earlier, there is the same functionality in Kaspresso. Do we need to duplicate it here?
Sorry, something went wrong.
matzuk
RuslanMingaliev
No branches or pull requests
ComposeTestRule
can provide functionality for awaiting views what can be useful for many test cases. However code below don't looks great to me.Want to find a way how to do the same way but without composeTestRule reinjection to the function
At the end wanna have something like
The text was updated successfully, but these errors were encountered: