iSeeRichText function
Example: When I see {'text'} rich text
Implementation
Future<void> iSeeRichText(
WidgetTester tester,
String text,
) async {
final finder = find.byWidgetPredicate(
(widget) => widget is RichText && widget.text.toPlainText() == text,
);
expect(finder, findsOneWidget);
}