feat: replace json tools with local data controls

This commit is contained in:
2026-06-12 01:11:50 +08:00
parent b88b947e66
commit b287a56731
10 changed files with 415 additions and 254 deletions
+14
View File
@@ -49,6 +49,20 @@ void main() {
expect(find.text('Appearance'), findsOneWidget);
});
testWidgets('Me manages local data without JSON tools', (tester) async {
await pumpFocusSeedApp(tester, locale: const Locale('en'));
await tester.tap(find.text('Me'));
await tester.pumpAndSettle();
expect(find.text('Local data'), findsOneWidget);
expect(find.text('Clear today'), findsOneWidget);
await tester.scrollUntilVisible(find.text('Delete all local data'), 180);
expect(find.text('Delete all local data'), findsOneWidget);
expect(find.text('Export JSON'), findsNothing);
expect(find.text('Import JSON'), findsNothing);
});
testWidgets('Today remains usable at narrow width and 200 percent text', (
tester,
) async {