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:
parent
952d2b0607
commit
397db4fe3f
2 changed files with 9 additions and 2 deletions
|
|
@ -735,7 +735,13 @@ void main() {
|
||||||
await tester.pump(const Duration(milliseconds: 200));
|
await tester.pump(const Duration(milliseconds: 200));
|
||||||
await tester.pumpAndSettle();
|
await tester.pumpAndSettle();
|
||||||
expect(find.byType(VocabularySensesView), findsOneWidget);
|
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();
|
await tester.pumpAndSettle();
|
||||||
expect(find.byType(VocabularySensesView), findsNothing);
|
expect(find.byType(VocabularySensesView), findsNothing);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -71,7 +71,8 @@ void main() {
|
||||||
expect(find.text('Save'), findsNothing);
|
expect(find.text('Save'), findsNothing);
|
||||||
await tester.enterText(field('Display name'), 'Tizian');
|
await tester.enterText(field('Display name'), 'Tizian');
|
||||||
await tester.enterText(field('Bio'), 'Learning Japanese.');
|
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();
|
await tester.pumpAndSettle();
|
||||||
// Nothing to save without a handle.
|
// Nothing to save without a handle.
|
||||||
expect(profiles.saves, isEmpty);
|
expect(profiles.saves, isEmpty);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue