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

Commit 5ca6be95 authored by Ajinkya Chalke's avatar Ajinkya Chalke
Browse files

Temporarily disable AppClipsActivityTest due to flakiness.

Bug: 269403503
Test: Ignoring a test due to flakiness
Change-Id: I1dc33a56a1b0767fdab705e780c03da4f252340f
parent 8c618e61
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) -> {