File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change 1
1
//import 'package:flutter/material.dart';
2
+
2
3
import 'package:flutter_test/flutter_test.dart' ;
3
4
import 'package:integration_test/integration_test.dart' ;
4
5
import 'package:mosquito_alert_app/main.dart' as app;
5
6
6
7
7
8
void main () {
8
- IntegrationTestWidgetsFlutterBinding .ensureInitialized ();
9
+ final binding = IntegrationTestWidgetsFlutterBinding .ensureInitialized ();
10
+ binding.framePolicy = LiveTestWidgetsFlutterBindingFramePolicy .fullyLive;
9
11
10
12
group ('end-to-end test' , () {
11
- testWidgets ('Sanity test' , (
12
- tester,
13
- ) async {
13
+ testWidgets ('Sanity test' , (tester) async {
14
14
app.main (env: "dev" );
15
- await tester.pumpAndSettle ();
15
+ await tester.pumpAndSettle (Duration (seconds : 3 ) );
16
16
17
+ // Expect notification permission being asked
17
18
expect (true , isTrue);
18
19
//expect(find.byKey(ValueKey("testing")), findsOne);
19
20
});
You can’t perform that action at this time.
0 commit comments