Unverified Commit 3313df9b authored by Ming Lyu (CareF)'s avatar Ming Lyu (CareF) Committed by GitHub

ensureVisible => scrollUntilVisible (#63983)

parent 24dc8d49
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment