Skip to content

Can IRenderedFragment.WaitForElement() be used similarly to WaitForAssertion()? #692

Answered by linkdotnet
derek-baker asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @derek-baker

WaitForElement("css-selector"); simplified is a WaitForAssertion(() => cut.Find("css-selector")); under the hood. So it makes sense that you test is flaky in both cases equally.

Can you post a snippet of the component and test which is flaky?

Replies: 1 comment 2 replies

Comment options

linkdotnet
Apr 28, 2022
Maintainer Sponsor

You must be logged in to vote
2 replies
@egil
Comment options

egil Apr 28, 2022
Maintainer

@derek-baker
Comment options

Answer selected by derek-baker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants