test(ui): scroll to the About tile now that Backup pushes it below the fold

This commit is contained in:
vjrj 2026-07-09 14:49:15 +02:00
parent d3711e39b0
commit 12a2ee2d64

View file

@ -11,6 +11,7 @@ void main() {
child: TaneApp( child: TaneApp(
repository: newTestRepository(db), repository: newTestRepository(db),
species: newTestSpeciesRepository(db), species: newTestSpeciesRepository(db),
onboarding: newTestOnboardingStore(),
), ),
); );
@ -55,6 +56,8 @@ void main() {
await tester.tap(find.text('Settings')); await tester.tap(find.text('Settings'));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
// The backup section pushed the About tile below the fold.
await tester.scrollUntilVisible(find.text('About Tanemaki'), 200);
await tester.tap(find.text('About Tanemaki')); await tester.tap(find.text('About Tanemaki'));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
@ -87,6 +90,7 @@ void main() {
await tester.pumpAndSettle(); await tester.pumpAndSettle();
await tester.tap(find.text('Settings')); await tester.tap(find.text('Settings'));
await tester.pumpAndSettle(); await tester.pumpAndSettle();
await tester.scrollUntilVisible(find.text('About Tanemaki'), 200);
await tester.tap(find.text('About Tanemaki')); await tester.tap(find.text('About Tanemaki'));
await tester.pumpAndSettle(); await tester.pumpAndSettle();