stabilize the way we navigate multiple pages for E2E macrobenchmarks (#96157)

This commit is contained in:
Jim Graham
2022-01-05 10:05:05 -08:00
committed by GitHub
parent 4bb3a8aff4
commit 6c21e43608
8 changed files with 67 additions and 20 deletions

View File

@@ -34,5 +34,6 @@ const String kOpacityPeepholeOpacityOfColOfRowsRouteName = '$kOpacityPeepholeRou
const String kOpacityPeepholeFadeTransitionTextRouteName = '$kOpacityPeepholeRouteName/fade_transition_text';
const String kScrollableName = '/macrobenchmark_listview';
const String kOpacityScrollableName = '$kOpacityPeepholeRouteName/listview';
const String kStackSizeKey = 'stack_size';

View File

@@ -17,7 +17,7 @@ class OpacityPeepholePage extends StatelessWidget {
return Scaffold(
appBar: AppBar(title: const Text('Opacity Peephole tests')),
body: ListView(
key: const Key('${kOpacityPeepholeRouteName}_listview'),
key: const Key(kOpacityScrollableName),
children: <Widget>[
for (OpacityPeepholeCase variant in allOpacityPeepholeCases)
ElevatedButton(