Skip to content

Commit

Permalink
fix(#665): fix main page test
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Nov 14, 2023
1 parent a394f09 commit 42865ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/integration_test/main_page_test.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'package:app/common/models/drug/cached_drugs.dart';
import 'package:app/common/module.dart';
import 'package:flutter_localizations/flutter_localizations.dart';
import 'package:flutter_test/flutter_test.dart';
Expand All @@ -10,11 +11,12 @@ void main() {

UserData.instance.lookups = {};

CachedDrugs.instance.version = 1;
CachedDrugs.instance.drugs = List.empty();

group('test the main page', () {
testWidgets('test that tabs change pages', (tester) async {
await initServices();
await fetchAndSaveLookups();
await updateCachedDrugs();
final appRouter = AppRouter();
await tester.pumpWidget(
MaterialApp.router(
Expand Down

0 comments on commit 42865ce

Please sign in to comment.