Skip to content

Commit

Permalink
work it man
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 10, 2024
1 parent 04996c9 commit de75d74
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions integration_test/app_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@ void main() {
});

group('host scanner end-to-end test', () {
// testWidgets('just test if app is able to launch and display homepage',
// (tester) async {
// // Load app widget.
// await tester.pumpWidget(const MyApp(true));
// await tester.pumpAndSettle();
testWidgets('just test if app is able to launch and display homepage',
(tester) async {
// Load app widget.
await tester.pumpWidget(const MyApp(true));
await tester.pumpAndSettle();

// // Verify that there are 4 widgets at homepage
// expect(find.bySubtype<AdaptiveListTile>(), findsAtLeastNWidgets(4));
// });
// Verify that there are 4 widgets at homepage
expect(find.bySubtype<AdaptiveListTile>(), findsAtLeastNWidgets(4));
});

testWidgets('tap on the scan for devices button, verify device found',
(tester) async {
Expand All @@ -50,7 +50,8 @@ void main() {
await tester.tap(devicesButton);
await tester.pump();
expect(find.byType(AdaptiveListTile), findsAny);
await tester.pumpAndSettle();
await tester.pumpAndSettle(const Duration(seconds: 20));
await tester.pump();
expect(find.byType(AdaptiveListTile), findsAtLeast(2));

// final routerIconButton = find.byKey(Keys.routerOrGatewayTileIconButton);
Expand Down

0 comments on commit de75d74

Please sign in to comment.