From a96d82add92322f72c6559ff2d6fa3d18723e18b Mon Sep 17 00:00:00 2001 From: vjrj Date: Thu, 9 Jul 2026 21:58:43 +0200 Subject: [PATCH] test(ui): scroll to the save button in the taller edit sheet; fix doc lint --- apps/app_seeds/integration_test/ocr_label_test.dart | 2 +- apps/app_seeds/test/ui/variety_detail_screen_test.dart | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/app_seeds/integration_test/ocr_label_test.dart b/apps/app_seeds/integration_test/ocr_label_test.dart index 2466c6b..d0dc652 100644 --- a/apps/app_seeds/integration_test/ocr_label_test.dart +++ b/apps/app_seeds/integration_test/ocr_label_test.dart @@ -7,7 +7,7 @@ import 'package:tane/services/ocr/tesseract_label_extractor.dart'; /// Tesseract really read my packets" gate from the plan. Runs the native engine, /// so it must run on a device/emulator, NOT under `flutter test` on the host: /// -/// flutter test integration_test/ocr_label_test.dart -d +/// `flutter test integration_test/ocr_label_test.dart -d ` /// /// Drop the photos to check into `assets/ocr_fixtures/` (declared in pubspec) /// with the file names below. Each test prints what Tesseract actually read so diff --git a/apps/app_seeds/test/ui/variety_detail_screen_test.dart b/apps/app_seeds/test/ui/variety_detail_screen_test.dart index a85bc63..d1bd91b 100644 --- a/apps/app_seeds/test/ui/variety_detail_screen_test.dart +++ b/apps/app_seeds/test/ui/variety_detail_screen_test.dart @@ -168,6 +168,9 @@ void main() { await tester.tap(find.text('Tomato (Solanum lycopersicum)')); await tester.pumpAndSettle(); + // The suggestion tile pushes the save button below the sheet's fold. + await tester.ensureVisible(find.byKey(const Key('editVariety.save'))); + await tester.pumpAndSettle(); await tester.tap(find.byKey(const Key('editVariety.save'))); await tester.pumpAndSettle();