From 38d467fdcb7823ff79018689e761374af80e3420 Mon Sep 17 00:00:00 2001 From: Frank Merkel <138444693+frankmer@users.noreply.github.com> Date: Mon, 19 Feb 2024 16:40:21 +0100 Subject: [PATCH] . --- integration_test/add_tokens_test.dart | 8 ++++---- lib/model/states/introduction_state.dart | 3 +++ lib/views/settings_view/settings_view.dart | 2 +- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/integration_test/add_tokens_test.dart b/integration_test/add_tokens_test.dart index e608d5d1e..9ede5320c 100644 --- a/integration_test/add_tokens_test.dart +++ b/integration_test/add_tokens_test.dart @@ -91,12 +91,12 @@ void main() { Future _introToMainView(WidgetTester tester) async { var finder = find.byType(FloatingActionButton); - await pumpUntilFindNWidgets(tester, finder, 1, const Duration(seconds: 10)); - await tester.tap(find.byType(FloatingActionButton)); + await pumpUntilFindNWidgets(tester, finder, 1, const Duration(seconds: 20)); + await tester.tap(finder); await tester.pump(const Duration(milliseconds: 2000)); - await tester.tap(find.byType(FloatingActionButton)); + await tester.tap(finder); await tester.pump(const Duration(milliseconds: 2000)); - await tester.tap(find.byType(FloatingActionButton)); + await tester.tap(finder); await tester.pump(const Duration(milliseconds: 2000)); finder = find.text(AppLocalizationsEn().ok); await pumpUntilFindNWidgets(tester, finder, 1, const Duration(seconds: 10)); diff --git a/lib/model/states/introduction_state.dart b/lib/model/states/introduction_state.dart index d001786eb..794295efb 100644 --- a/lib/model/states/introduction_state.dart +++ b/lib/model/states/introduction_state.dart @@ -31,4 +31,7 @@ class IntroductionState { } bool isConditionFulfilled(WidgetRef ref, Introduction introduction) => introduction.isConditionFulfilled(ref, this); + + @override + String toString() => 'IntroductionState{completedIntroductions: $completedIntroductions}'; } diff --git a/lib/views/settings_view/settings_view.dart b/lib/views/settings_view/settings_view.dart index 8bf83d42e..4dbbdfc4c 100644 --- a/lib/views/settings_view/settings_view.dart +++ b/lib/views/settings_view/settings_view.dart @@ -260,7 +260,7 @@ class SettingsView extends ConsumerView { onChanged: (value) => ref.read(settingsProvider.notifier).setPolling(value), ), ), - if (ref.watch(tokenProvider).hasHOTPTokens) + if (ref.watch(tokenProvider).hasOTPTokens) ListTile( title: RichText( text: TextSpan(