Open tuanthyme opened 1 year ago
I think this is because StyledText parses the input text (xml) asynchronously.
@tuanthyme Does it work if await tester.pumpAndSettle()
is called before the find
?
I think it might work 50% of the time as a side effect. There is no exact way to wait until the end of the render.
Just running into this myself now. Wondering if there are suggestions on how to handle this? Or if this can be fixed by the library so that the text parsing is not asynchronous?
The above test as well as test for "StyledText.selectable" fails trying to find any Text, EditableText, or RichText. This makes unit testing based on strings rendered difficult.