Skip to content

Instantly share code, notes, and snippets.

@fredgrott
Created November 17, 2023 18:20
stager testing snippet
testWidgets('shows an empty state', (WidgetTester tester) async {
final Scene scene = EmptyListScene();
await scene.setUp();
await tester.pumpWidget(scene.build());
await tester.pump();
expect(find.text('No posts'), findsOneWidget);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment