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

Commit 8a4c26fa authored by Ben Reich's avatar Ben Reich
Browse files

Add check flags rule to ensure test is skipped

Forgot to add this @Rule in a previous test and whilst trying to board
the latest train it has not stopped the test from executing on devices
which it should skip. This should fix that.

Bug: 393339189 , 377771803
Test: atest SortDocumentUiTest#testSortByArrowIcon
Flag: EXEMPT test change
Change-Id: Ib1ee43f40884d70422a7cd0b912a46eacfa28c32
parent 2eacf61b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@ import static com.android.documentsui.flags.Flags.FLAG_USE_MATERIAL3;

import android.net.Uri;
import android.platform.test.annotations.RequiresFlagsEnabled;
import android.platform.test.flag.junit.CheckFlagsRule;
import android.platform.test.flag.junit.DeviceFlagsValueProvider;
import android.view.KeyEvent;

import androidx.test.filters.LargeTest;
@@ -31,6 +33,7 @@ import com.android.documentsui.sorting.SortModel;

import org.junit.After;
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.RunWith;

@@ -73,6 +76,9 @@ public class SortDocumentUiTest extends ActivityTestJunit4<FilesActivity> {
        return ret;
    }

    @Rule
    public final CheckFlagsRule mCheckFlagsRule = DeviceFlagsValueProvider.createCheckFlagsRule();

    @Before
    public void setUp() throws Exception {
        super.setUp();