Fix for EditShortcutsPreferenceFragmentTest to mock the correct AccessibilityTarget fields

Also adds settings a11y tests to TEST_MAPPING presubmit

Bug: 324945360
Test: EditShortcutsPreferenceFragmentTest
Flag: N/A
Change-Id: I8c36031ae33f2d74297ed4bbb0aa4fcbd026db76
This commit is contained in:
Riley Jones
2024-02-26 21:27:00 +00:00
parent 22b3c1fe1d
commit 3a5b5a4d2a

View File

@@ -549,6 +549,7 @@ public class EditShortcutsPreferenceFragmentTest {
ComponentName componentName, String label) {
AccessibilityTarget target = mock(AccessibilityTarget.class);
when(target.getComponentName()).thenReturn(componentName);
when(target.getId()).thenReturn(componentName.flattenToString());
when(target.getLabel()).thenReturn(label);
return target;
}