diff --git a/tests/robotests/src/com/android/settings/accessibility/shortcuts/GestureShortcutOptionControllerTest.java b/tests/robotests/src/com/android/settings/accessibility/shortcuts/GestureShortcutOptionControllerTest.java index 39535cb139a..a58cf072dc6 100644 --- a/tests/robotests/src/com/android/settings/accessibility/shortcuts/GestureShortcutOptionControllerTest.java +++ b/tests/robotests/src/com/android/settings/accessibility/shortcuts/GestureShortcutOptionControllerTest.java @@ -92,6 +92,7 @@ public class GestureShortcutOptionControllerTest { } @Test + @DisableFlags(Flags.FLAG_A11Y_STANDALONE_GESTURE_ENABLED) public void getSummary_touchExplorationDisabled_notInSuw_verifySummary() { enableTouchExploration(false); mController.setInSetupWizard(false); @@ -106,6 +107,19 @@ public class GestureShortcutOptionControllerTest { assertThat(mController.getSummary().toString()).isEqualTo(expected); } + @Test + @EnableFlags(Flags.FLAG_A11Y_STANDALONE_GESTURE_ENABLED) + public void getSummary_touchExplorationDisabled_notInSuw_gestureFlag_verifySummary() { + enableTouchExploration(false); + mController.setInSetupWizard(false); + String expected = StringUtil.getIcuPluralsString( + mContext, + /* count= */ 2, + R.string.accessibility_shortcut_edit_dialog_summary_gesture); + + assertThat(mController.getSummary().toString()).isEqualTo(expected); + } + @Test public void getSummary_touchExplorationDisabled_inSuw_verifySummary() { enableTouchExploration(false);