Skip to content

Commit

Permalink
feat: adds simple test
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 committed Sep 27, 2024
1 parent 80942f7 commit 4a04ff0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions catalyst_voices/integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import 'package:integration_test/integration_test.dart';
void main() {
IntegrationTestWidgetsFlutterBinding.ensureInitialized();

group('end-to-end test', () {
group('End to end tests', () {
testWidgets('run app', (tester) async {
final args = await bootstrap();
await tester.pumpWidget(App(routerConfig: args.routerConfig));
Expand All @@ -15,9 +15,8 @@ void main() {

// pump and settle every 100ms to simulate almost production-like FPS
await tester.pumpAndSettle(const Duration(milliseconds: 100));
expect(find.text('Coming'), findsOneWidget);

// wait 10s until the test is finished
await Future<void>.delayed(const Duration(seconds: 10));
});
});
}

0 comments on commit 4a04ff0

Please sign in to comment.