Accessibility fixes for new gallery (#16973)
This commit is contained in:
@@ -26,7 +26,7 @@ void main() {
|
||||
await tester.pump(); // triggers a frame
|
||||
|
||||
// Show the options page
|
||||
await tester.tap(find.byTooltip('Show options page'));
|
||||
await tester.tap(find.byTooltip('Toggle options page'));
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
MaterialApp app = find.byType(MaterialApp).evaluate().first.widget;
|
||||
@@ -89,7 +89,7 @@ void main() {
|
||||
expect(hasFeedback, true);
|
||||
|
||||
// Hide the options page
|
||||
await tester.tap(find.byTooltip('Show options page'));
|
||||
await tester.tap(find.byTooltip('Toggle options page'));
|
||||
await tester.pumpAndSettle();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ void main() {
|
||||
await tester.pump(); // see https://github.com/flutter/flutter/issues/1865
|
||||
await tester.pump(); // triggers a frame
|
||||
|
||||
final Finder showOptionsPageButton = find.byTooltip('Show options page');
|
||||
final Finder showOptionsPageButton = find.byTooltip('Toggle options page');
|
||||
|
||||
// Show the options page
|
||||
await tester.tap(showOptionsPageButton);
|
||||
|
||||
@@ -96,7 +96,7 @@ Future<Null> smokeDemo(WidgetTester tester, GalleryDemo demo) async {
|
||||
}
|
||||
|
||||
Future<Null> smokeOptionsPage(WidgetTester tester) async {
|
||||
final Finder showOptionsPageButton = find.byTooltip('Show options page');
|
||||
final Finder showOptionsPageButton = find.byTooltip('Toggle options page');
|
||||
|
||||
// Show the options page
|
||||
await tester.tap(showOptionsPageButton);
|
||||
|
||||
Reference in New Issue
Block a user