Unverified Commit fe70a2b0 authored by Jim Graham's avatar Jim Graham Committed by GitHub

add page delays to the fullscreen versions of the textfield perf benchmarks (#107746)

parent 924490da
...@@ -12,11 +12,7 @@ void main() { ...@@ -12,11 +12,7 @@ void main() {
macroPerfTestE2E( macroPerfTestE2E(
'fullscreen_textfield_perf', 'fullscreen_textfield_perf',
kFullscreenTextRouteName, kFullscreenTextRouteName,
// The driver version doesn't have this delay because the delay caused pageDelay: const Duration(seconds: 1),
// 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),
body: (WidgetController controller) async { body: (WidgetController controller) async {
final Finder textfield = find.byKey(const ValueKey<String>('fullscreen-textfield')); final Finder textfield = find.byKey(const ValueKey<String>('fullscreen-textfield'));
controller.tap(textfield); controller.tap(textfield);
......
...@@ -11,7 +11,7 @@ void main() { ...@@ -11,7 +11,7 @@ void main() {
macroPerfTest( macroPerfTest(
'fullscreen_textfield_perf', 'fullscreen_textfield_perf',
kFullscreenTextRouteName, kFullscreenTextRouteName,
pageDelay: const Duration(milliseconds: 50), pageDelay: const Duration(seconds: 1),
driverOps: (FlutterDriver driver) async { driverOps: (FlutterDriver driver) async {
final SerializableFinder textfield = find.byValueKey('fullscreen-textfield'); final SerializableFinder textfield = find.byValueKey('fullscreen-textfield');
driver.tap(textfield); driver.tap(textfield);
......
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