test(ui): scroll to the save button in the taller edit sheet; fix doc lint
This commit is contained in:
parent
383eb3ba37
commit
a96d82add9
2 changed files with 4 additions and 1 deletions
|
|
@ -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,
|
/// 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:
|
/// so it must run on a device/emulator, NOT under `flutter test` on the host:
|
||||||
///
|
///
|
||||||
/// flutter test integration_test/ocr_label_test.dart -d <android-device>
|
/// `flutter test integration_test/ocr_label_test.dart -d <android-device>`
|
||||||
///
|
///
|
||||||
/// Drop the photos to check into `assets/ocr_fixtures/` (declared in pubspec)
|
/// 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
|
/// with the file names below. Each test prints what Tesseract actually read so
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,9 @@ void main() {
|
||||||
await tester.tap(find.text('Tomato (Solanum lycopersicum)'));
|
await tester.tap(find.text('Tomato (Solanum lycopersicum)'));
|
||||||
await tester.pumpAndSettle();
|
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.tap(find.byKey(const Key('editVariety.save')));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue