mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
ensureVisible => scrollUntilVisible (#63983)
This commit is contained in:
parent
24dc8d494e
commit
3313df9b13
@ -45,11 +45,11 @@ void macroPerfTestE2E(
|
||||
expect(scrollable, findsOneWidget);
|
||||
final Finder button =
|
||||
find.byKey(ValueKey<String>(routeName), skipOffstage: false);
|
||||
await tester.ensureVisible(button);
|
||||
await tester.scrollUntilVisible(button, 50);
|
||||
expect(button, findsOneWidget);
|
||||
await tester.pumpAndSettle();
|
||||
await tester.tap(button);
|
||||
// Cannot be pumpAndSettle because some tests have inifite animation.
|
||||
// Cannot be pumpAndSettle because some tests have infinite animation.
|
||||
await tester.pump(const Duration(milliseconds: 20));
|
||||
|
||||
if (pageDelay != null) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user