Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 46f76d9a authored by Daniel Norman's avatar Daniel Norman
Browse files

Skips AccessibilityShortcutChooserActivity on watch.

Watch does not support this user experience and doesn't
use this activity.

Bug: 304892186
Change-Id: Ia6ac3c6085d46301192425cb091a8648d621244c
parent e619e972
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -33,6 +33,7 @@ import static com.google.common.truth.Truth.assertThat;

import static org.hamcrest.Matchers.allOf;
import static org.hamcrest.Matchers.endsWith;
import static org.junit.Assume.assumeFalse;
import static org.mockito.ArgumentMatchers.any;
import static org.mockito.ArgumentMatchers.anyInt;
import static org.mockito.ArgumentMatchers.anyString;
@@ -119,6 +120,11 @@ public class AccessibilityShortcutChooserActivityTest {

    @Before
    public void setUp() throws Exception {
        final PackageManager pm =
                InstrumentationRegistry.getInstrumentation().getContext().getPackageManager();
        assumeFalse("AccessibilityShortcutChooserActivity not supported on watch",
                pm.hasSystemFeature(PackageManager.FEATURE_WATCH));

        mDevice = UiDevice.getInstance(InstrumentationRegistry.getInstrumentation());
        mDevice.wakeUp();
        when(mAccessibilityServiceInfo.getResolveInfo()).thenReturn(mResolveInfo);
@@ -138,8 +144,10 @@ public class AccessibilityShortcutChooserActivityTest {

    @After
    public void cleanUp() {
        if (mScenario != null) {
            mScenario.close();
        }
    }

    @Test
    public void doubleClickTestServiceAndClickDenyButton_permissionDialogDoesNotExist() {