diff --git a/integration_test/keyless_test.dart b/integration_test/keyless_test.dart index 039386e3..b01342c6 100644 --- a/integration_test/keyless_test.dart +++ b/integration_test/keyless_test.dart @@ -36,21 +36,22 @@ void main() { }); group('Settings', () { appTestKeyless('Click through all Themes', (WidgetTester tester) async { - var settingDrawerButton = find.byKey(settingDrawerIcon).hitTestable(); - await tester.tap(settingDrawerButton); - await tester.longWait(); + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); + await tester.tap(find.byKey(settingDrawerIcon).hitTestable()); + await tester.shortWait(); await tester.tap(find.byKey(themeModeSetting)); - await tester.longWait(); + await tester.shortWait(); await tester .tap(find.byKey(themeModeOption(ThemeMode.light)).hitTestable()); await tester.longWait(); await tester.tap(find.byKey(themeModeSetting)); - await tester.longWait(); + await tester.shortWait(); await tester .tap(find.byKey(themeModeOption(ThemeMode.dark)).hitTestable()); await tester.longWait(); await tester.tap(find.byKey(themeModeSetting)); - await tester.longWait(); + await tester.shortWait(); await tester .tap(find.byKey(themeModeOption(ThemeMode.system)).hitTestable()); await tester.longWait(); @@ -60,6 +61,8 @@ void main() { var helpDrawerButton = find.byKey(helpDrawerIcon).hitTestable(); appTestKeyless('Check Licenses view', (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); await tester.shortWait(); var licensesButtonText = find.byKey(licensesButton).hitTestable(); @@ -70,8 +73,10 @@ void main() { }); group('Opening of URLs', () { appTestKeyless('TOS link', (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); - await tester.longWait(); + await tester.shortWait(); if (isAndroid) { expect(find.byKey(tosButton).hitTestable(), findsOneWidget); } else { @@ -80,8 +85,10 @@ void main() { } }); appTestKeyless('Privacy link', (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); - await tester.longWait(); + await tester.shortWait(); if (isAndroid) { expect(find.byKey(privacyButton).hitTestable(), findsOneWidget); } else { @@ -90,8 +97,10 @@ void main() { } }); appTestKeyless('Feedback link', (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); - await tester.longWait(); + await tester.shortWait(); if (isAndroid) { expect(find.byKey(userGuideButton).hitTestable(), findsOneWidget); } else { @@ -100,6 +109,8 @@ void main() { } }); appTestKeyless('Help link', (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); await tester.longWait(); if (isAndroid) { @@ -113,14 +124,18 @@ void main() { group('Troubleshooting', () { appTestKeyless('Diagnostics Button', skip: isAndroid, (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); - await tester.longWait(); + await tester.shortWait(); await tester.tap(find.byKey(diagnosticsChip).hitTestable()); await tester.longWait(); }); appTestKeyless('Log button', (WidgetTester tester) async { + await tester.tap(find.byKey(actionsIconButtonKey).hitTestable()); + await tester.shortWait(); await tester.tap(helpDrawerButton); - await tester.longWait(); + await tester.shortWait(); await tester.tap(find.byKey(logChip).hitTestable()); await tester.longWait(); }); diff --git a/lib/home/views/key_actions.dart b/lib/home/views/key_actions.dart index 69df8b30..b0c13e30 100644 --- a/lib/home/views/key_actions.dart +++ b/lib/home/views/key_actions.dart @@ -25,6 +25,7 @@ import '../../app/message.dart'; import '../../app/models.dart'; import '../../app/shortcuts.dart'; import '../../app/views/action_list.dart'; +import '../../app/views/keys.dart'; import '../../app/views/reset_dialog.dart'; import '../../core/models.dart'; import '../../core/state.dart'; @@ -97,6 +98,7 @@ Widget homeBuildActions( ActionListSection(l10n.s_application, children: [ ActionListItem( icon: const Icon(Symbols.settings), + key: settingDrawerIcon, title: l10n.s_settings, subtitle: l10n.l_settings_desc, actionStyle: ActionStyle.primary, @@ -107,6 +109,7 @@ Widget homeBuildActions( ), ActionListItem( icon: const Icon(Symbols.help), + key: helpDrawerIcon, title: l10n.s_help_and_about, subtitle: l10n.l_help_and_about_desc, actionStyle: ActionStyle.primary,