Fix some issues with launching E2E benchmarks and add page delays in textfield benchmarks (#107500)
This commit is contained in:
@@ -11,6 +11,7 @@ void main() {
|
||||
macroPerfTest(
|
||||
'textfield_perf',
|
||||
kTextRouteName,
|
||||
pageDelay: const Duration(seconds: 1),
|
||||
driverOps: (FlutterDriver driver) async {
|
||||
final SerializableFinder textfield = find.byValueKey('basic-textfield');
|
||||
driver.tap(textfield);
|
||||
|
||||
@@ -52,10 +52,10 @@ void macroPerfTest(
|
||||
}
|
||||
|
||||
timeline = await driver.traceAction(() async {
|
||||
final Future<void> durationFuture = Future<void>.delayed(duration);
|
||||
if (driverOps != null) {
|
||||
await driverOps(driver);
|
||||
}
|
||||
final Future<void> durationFuture = Future<void>.delayed(duration);
|
||||
if (driverOps != null) {
|
||||
await driverOps(driver);
|
||||
}
|
||||
await durationFuture;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user