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

Commit 006db80d authored by Nataniel Borges's avatar Nataniel Borges
Browse files

Enable previously flaky IME related tests

The IME layer is sometimes present but hidden on the hierarchy. The tests should ignore this condition (skip until first assertion) to ensure the tests are no longer flaky.

Test: atest FlickerTests
Change-Id: Ie1c9daf006eac215d310cfbb66df96501e910b5f
parent 5225a0e8
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@ import androidx.test.filters.LargeTest;
import com.android.server.wm.flicker.helpers.ImeAppHelper;

import org.junit.FixMethodOrder;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.junit.runners.MethodSorters;
@@ -62,20 +61,20 @@ public class CloseImeWindowToHomeTest extends NonRotationTestBase {
                .forAllEntries());
    }

    @Ignore("Flaky")
    @Test
    public void checkVisibility_imeLayerBecomesInvisible() {
        checkResults(result -> LayersTraceSubject.assertThat(result)
                .skipUntilFirstAssertion()
                .showsLayer(IME_WINDOW_TITLE)
                .then()
                .hidesLayer(IME_WINDOW_TITLE)
                .forAllEntries());
    }

    @Ignore("Flaky")
    @Test
    public void checkVisibility_imeAppLayerBecomesInvisible() {
        checkResults(result -> LayersTraceSubject.assertThat(result)
                .skipUntilFirstAssertion()
                .showsLayer(mTestApp.getPackage())
                .then()
                .hidesLayer(mTestApp.getPackage())