Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
frankmer committed Feb 19, 2024
1 parent 178fca3 commit 38d467f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
8 changes: 4 additions & 4 deletions integration_test/add_tokens_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,12 +91,12 @@ void main() {

Future<void> _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));
Expand Down
3 changes: 3 additions & 0 deletions lib/model/states/introduction_state.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,7 @@ class IntroductionState {
}

bool isConditionFulfilled(WidgetRef ref, Introduction introduction) => introduction.isConditionFulfilled(ref, this);

@override
String toString() => 'IntroductionState{completedIntroductions: $completedIntroductions}';
}
2 changes: 1 addition & 1 deletion lib/views/settings_view/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 38d467f

Please sign in to comment.