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

This commit is contained in:
Jim Graham 2022-08-11 12:11:06 -07:00 committed by GitHub
parent 924490da62
commit fe70a2b0f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 6 deletions

View File

@ -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<String>('fullscreen-textfield'));
controller.tap(textfield);

View File

@ -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);