feat: replace json tools with local data controls
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user