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

Commit 985b2525 authored by Ajinkya Chalke's avatar Ajinkya Chalke Committed by Android (Google) Code Review
Browse files

Merge "Temporarily disable AppClipsActivityTest due to flakiness." into udc-dev

parents d0134ec0 5ca6be95
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -57,6 +57,7 @@ import com.android.systemui.settings.UserTracker;

import org.junit.After;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;
@@ -65,7 +66,6 @@ import org.mockito.MockitoAnnotations;

import java.util.function.BiConsumer;


@RunWith(AndroidTestingRunner.class)
public final class AppClipsActivityTest extends SysuiTestCase {

@@ -140,6 +140,7 @@ public final class AppClipsActivityTest extends SysuiTestCase {
        mActivityRule.finishActivity();
    }

    @Ignore("b/269403503")
    @Test
    public void appClipsLaunched_screenshotDisplayed() {
        launchActivity();
@@ -147,6 +148,7 @@ public final class AppClipsActivityTest extends SysuiTestCase {
        assertThat(((ImageView) mActivity.findViewById(R.id.preview)).getDrawable()).isNotNull();
    }

    @Ignore("b/269403503")
    @Test
    public void screenshotDisplayed_userConsented_screenshotExportedSuccessfully() {
        ResultReceiver resultReceiver = createResultReceiver((resultCode, data) -> {
@@ -166,6 +168,7 @@ public final class AppClipsActivityTest extends SysuiTestCase {
        verify(mUiEventLogger).log(SCREENSHOT_FOR_NOTE_ACCEPTED, TEST_UID, TEST_CALLING_PACKAGE);
    }

    @Ignore("b/269403503")
    @Test
    public void screenshotDisplayed_userDeclined() {
        ResultReceiver resultReceiver = createResultReceiver((resultCode, data) -> {