File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -15,18 +15,22 @@ void main() {
15
15
{
16
16
testWidgets ('Home page loaded' , (WidgetTester tester) async {
17
17
await tester.pumpWidget (App ());
18
+
19
+ // Verify that the title bar has loaded
18
20
expect (find.text ('Contacts' ), findsOneWidget);
19
21
});
20
22
21
23
testWidgets ('Open add user dialog test' , (WidgetTester tester) async {
22
24
await tester.pumpWidget (App ());
23
25
26
+ // Confirm that the add_user_dialog isn't loaded initially
24
27
expect (find.text ('Add' ), findsNothing);
25
28
26
29
// Tap the group_add button
27
30
await tester.tap (find.byIcon (Icons .group_add));
28
31
await tester.pump ();
29
32
33
+ // Confirm that tapping the group_add icon has loaded the add_user_dialog
30
34
expect (find.text ('Add' ), findsOneWidget);
31
35
});
32
36
});
You can’t perform that action at this time.
0 commit comments