Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import 'package:veggieseasons/main.dart' as app;
void main(){
testWidgets('it is possible to find matching fruit from main app',
(WidgetTester tester) async {
await tester.pumpWidget(app.MainWidget());
await tester.tap(find.text("Search"));
await tester.pump();
await tester.enterText(find.byType(SearchBar), "Grapes");
await tester.pump();
expect(find.byKey(new Key("SearchItemName")),findsOneWidget);
expect(find.text("Couldn\'t have wine without them."),findsOneWidget);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.