test: two taps that missed their widget now hit it

The Watch screen's test tapped the middle of an unfolded entry's senses,
which lay beyond the card's scrolling clip, so the tap reached the list
behind it; it now taps the card's first line. The public profile's test
tapped the display name's floated label, outside the field, to leave the
bio; it now taps the field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
Tizian 「ティツィアーン」 2026-10-17 14:23:47 +02:00
commit 397db4fe3f
Signed by: raisondetredev
GPG key ID: 07F6FCF405488B64
2 changed files with 9 additions and 2 deletions

View file

@ -735,7 +735,13 @@ void main() {
await tester.pump(const Duration(milliseconds: 200));
await tester.pumpAndSettle();
expect(find.byType(VocabularySensesView), findsOneWidget);
await tester.tap(find.byType(VocabularySensesView));
// Its first line: the card scrolls, and its middle may lie beyond it.
await tester.tap(
find.descendant(
of: find.byType(VocabularySensesView),
matching: find.textContaining('sense 1 of a long'),
),
);
await tester.pumpAndSettle();
expect(find.byType(VocabularySensesView), findsNothing);
});

View file

@ -71,7 +71,8 @@ void main() {
expect(find.text('Save'), findsNothing);
await tester.enterText(field('Display name'), 'Tizian');
await tester.enterText(field('Bio'), 'Learning Japanese.');
await tester.tap(find.text('Display name'));
// Leaving the bio for the name.
await tester.tap(field('Display name'));
await tester.pumpAndSettle();
// Nothing to save without a handle.
expect(profiles.saves, isEmpty);