Skip to content

Commit

Permalink
Add expected widget type
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu3 committed Feb 1, 2025
1 parent 766c2bf commit 2dbcfa8
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/widgets/base_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:mockito/mockito.dart';
import 'package:pi_hole_client/base.dart';
import 'package:pi_hole_client/widgets/bottom_nav_bar.dart';
import 'package:pi_hole_client/widgets/navigation_rail.dart';
import 'package:pi_hole_client/widgets/start_warning_modal.dart';

import './helpers.dart';
Expand Down Expand Up @@ -70,7 +72,7 @@ void main() async {

expect(find.byType(Base), findsOneWidget);
await tester.pump();

expect(find.byType(BottomNavBar), findsOneWidget);
expect(find.byIcon(Icons.link_rounded), findsOneWidget);
expect(find.text('Servers'), findsOneWidget);
},
Expand All @@ -97,7 +99,7 @@ void main() async {

expect(find.byType(Base), findsOneWidget);
await tester.pump();

expect(find.byType(CustomNavigationRail), findsOneWidget);
expect(find.byIcon(Icons.link_rounded), findsOneWidget);
expect(find.text('Servers'), findsOneWidget);
},
Expand Down

0 comments on commit 2dbcfa8

Please sign in to comment.