add page delays to the fullscreen versions of the textfield perf benchmarks (#107746)
This commit is contained in:
parent
924490da62
commit
fe70a2b0f7
@ -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() {
|
|||||||
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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user