From 3ff51c74b1af9b857e899f97424b3637b0b90348 Mon Sep 17 00:00:00 2001 From: Greg Spencer Date: Wed, 9 Oct 2019 15:32:30 -0700 Subject: [PATCH] Update android semantics test to match existing engine behavior. (#42368) This updated the broken android_semantics_test to correspond to existing engine behavior. --- .../test_driver/main_test.dart | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dev/integration_tests/android_semantics_testing/test_driver/main_test.dart b/dev/integration_tests/android_semantics_testing/test_driver/main_test.dart index 9e21a8268b..8d5fac40c1 100644 --- a/dev/integration_tests/android_semantics_testing/test_driver/main_test.dart +++ b/dev/integration_tests/android_semantics_testing/test_driver/main_test.dart @@ -369,9 +369,10 @@ void main() { isEnabled: true, isFocusable: true, actions: [ - if (item == popupItems.first) AndroidSemanticsAction.clearAccessibilityFocus, - if (item != popupItems.first) AndroidSemanticsAction.accessibilityFocus, - AndroidSemanticsAction.click, + // TODO(gspencergoog): This should really be clearAccessibilityFocus, + // but TalkBack doesn't find it for some reason. + // https://github.com/flutter/flutter/issues/40101 + AndroidSemanticsAction.accessibilityFocus, ], ), reason: "Popup $item doesn't have the right semantics"); @@ -393,10 +394,10 @@ void main() { isEnabled: true, isFocusable: true, actions: [ - // TODO(gspencergoog): This should really be identical to the first time, - // but TalkBack doesn't find it the second time for some reason. + // TODO(gspencergoog): This should really be clearAccessibilityFocus, + // but TalkBack doesn't find it for some reason. + // https://github.com/flutter/flutter/issues/40101 AndroidSemanticsAction.accessibilityFocus, - AndroidSemanticsAction.click, ], ), reason: "Popup $item doesn't have the right semantics the second time");