From 29965dcaa12cfd64306d69ca2e914080b10d3a23 Mon Sep 17 00:00:00 2001 From: Tamara Slosarek Date: Thu, 29 Aug 2024 12:05:38 +0200 Subject: [PATCH] fix(app): adapt drug tests --- app/integration_test/drugs_test.dart | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/integration_test/drugs_test.dart b/app/integration_test/drugs_test.dart index 8c3a4899..176b9e3b 100644 --- a/app/integration_test/drugs_test.dart +++ b/app/integration_test/drugs_test.dart @@ -142,8 +142,8 @@ void main() { // test that drug activity can be set final activitySelection = tester.firstWidget( - find.byType(DropdownButton) - ) as DropdownButton; + find.byType(Switch) + ) as Switch; expect(activitySelection.onChanged, isNotNull); // test tooltips @@ -208,8 +208,8 @@ void main() { ); final activitySelection = tester.firstWidget( - find.byType(DropdownButton) - ) as DropdownButton; + find.byType(Switch) + ) as Switch; expect(activitySelection.onChanged, isNull); }); });