Skip to content

Commit 4d2c698

Browse files
committed
Showing app instead of "Test starting..."
1 parent 668cc01 commit 4d2c698

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

Diff for: integration_test/dummy_test.dart

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,20 @@
11
//import 'package:flutter/material.dart';
2+
23
import 'package:flutter_test/flutter_test.dart';
34
import 'package:integration_test/integration_test.dart';
45
import 'package:mosquito_alert_app/main.dart' as app;
56

67

78
void main() {
8-
IntegrationTestWidgetsFlutterBinding.ensureInitialized();
9+
final binding = IntegrationTestWidgetsFlutterBinding.ensureInitialized();
10+
binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy.fullyLive;
911

1012
group('end-to-end test', () {
11-
testWidgets('Sanity test', (
12-
tester,
13-
) async {
13+
testWidgets('Sanity test', (tester) async {
1414
app.main(env: "dev");
15-
await tester.pumpAndSettle();
15+
await tester.pumpAndSettle(Duration(seconds: 3));
1616

17+
// Expect notification permission being asked
1718
expect(true, isTrue);
1819
//expect(find.byKey(ValueKey("testing")), findsOne);
1920
});

0 commit comments

Comments
 (0)