Accessibility fixes for new gallery (#16973)

This commit is contained in:
xster
2018-04-30 17:19:00 -07:00
committed by GitHub
parent 100be23a34
commit 709b0cb285
5 changed files with 29 additions and 25 deletions

View File

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

View File

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

View File

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