feat: settings manage data (#5265)

* feat: settings manage data page

* fix: changes after merge

* test: fix failing integration test

* fix: missing localizations
This commit is contained in:
Mathias Mogensen
2024-05-13 09:45:56 +02:00
committed by GitHub
parent 38fa9f7942
commit 8273d66c50
14 changed files with 579 additions and 598 deletions

View File

@ -101,7 +101,7 @@ void main() {
// open settings and restore the location
await tester.openSettings();
await tester.openSettingsPage(SettingsPage.files);
await tester.openSettingsPage(SettingsPage.manageData);
await tester.restoreLocation();
expect(

View File

@ -39,10 +39,14 @@ extension AppFlowySettings on WidgetTester {
/// Restore the AppFlowy data storage location
Future<void> restoreLocation() async {
final button =
find.byTooltip(LocaleKeys.settings_files_recoverLocationTooltips.tr());
final button = find.text(LocaleKeys.settings_common_reset.tr());
expect(button, findsOneWidget);
await tapButton(button);
await pumpAndSettle();
final confirmButton = find.text(LocaleKeys.button_confirm.tr());
expect(confirmButton, findsOneWidget);
await tapButton(confirmButton);
return;
}