From fe70a2b0f73609ea210ff564831905307e40245b Mon Sep 17 00:00:00 2001 From: Jim Graham Date: Thu, 11 Aug 2022 12:11:06 -0700 Subject: [PATCH] add page delays to the fullscreen versions of the textfield perf benchmarks (#107746) --- .../macrobenchmarks/test/fullscreen_textfield_perf_e2e.dart | 6 +----- .../test_driver/fullscreen_textfield_perf_test.dart | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/dev/benchmarks/macrobenchmarks/test/fullscreen_textfield_perf_e2e.dart b/dev/benchmarks/macrobenchmarks/test/fullscreen_textfield_perf_e2e.dart index 7b33bcd0ca..5a63652ba5 100644 --- a/dev/benchmarks/macrobenchmarks/test/fullscreen_textfield_perf_e2e.dart +++ b/dev/benchmarks/macrobenchmarks/test/fullscreen_textfield_perf_e2e.dart @@ -12,11 +12,7 @@ void main() { macroPerfTestE2E( 'fullscreen_textfield_perf', kFullscreenTextRouteName, - // The driver version doesn't have this delay because the delay caused - // by the communication between the host and the test device is long enough - // for the driver test, but there isn't such delay in this host independent - // test. - pageDelay: const Duration(milliseconds: 50), + pageDelay: const Duration(seconds: 1), body: (WidgetController controller) async { final Finder textfield = find.byKey(const ValueKey('fullscreen-textfield')); controller.tap(textfield); diff --git a/dev/benchmarks/macrobenchmarks/test_driver/fullscreen_textfield_perf_test.dart b/dev/benchmarks/macrobenchmarks/test_driver/fullscreen_textfield_perf_test.dart index 1d706c00a4..ec94c3e771 100644 --- a/dev/benchmarks/macrobenchmarks/test_driver/fullscreen_textfield_perf_test.dart +++ b/dev/benchmarks/macrobenchmarks/test_driver/fullscreen_textfield_perf_test.dart @@ -11,7 +11,7 @@ void main() { macroPerfTest( 'fullscreen_textfield_perf', kFullscreenTextRouteName, - pageDelay: const Duration(milliseconds: 50), + pageDelay: const Duration(seconds: 1), driverOps: (FlutterDriver driver) async { final SerializableFinder textfield = find.byValueKey('fullscreen-textfield'); driver.tap(textfield);