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

Commit 569fd7d6 authored by Sergey Pinkevich's avatar Sergey Pinkevich
Browse files

[E2E test] Make tab tearing E2E fail if the new window is not opened after tab tearing

Bug: 423218776
Flag: EXEMPT no flag needed for e2e instrumentation
Test: atest TabTearingDesktopWindowingLimitTest

Change-Id: Iebbc060f0239e1cef06b8b3e84dd994e19b7358b
parent 41995c9d
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -60,7 +60,14 @@ abstract class TabTearing(val rotation: Rotation = Rotation.ROTATION_0) :
            wmHelper,
            BrowserAppHelper.Companion.TabDraggingDirection.TOP_LEFT
        )
        wmHelper.StateSyncBuilder().withAppTransitionIdle().waitForAndVerify()
        wmHelper.StateSyncBuilder()
            .withAppTransitionIdle()
            .withTopVisibleApps(
                // We need to verify that after tab tearing we have 2 browser windows
                browserAppHelper.componentMatcher,
                browserAppHelper.componentMatcher
            )
            .waitForAndVerify()
    }

    @After
+1 −0
Original line number Diff line number Diff line
@@ -74,6 +74,7 @@ abstract class TabTearingDesktopWindowingLimit(val rotation: Rotation = Rotation
        wmHelper
            .StateSyncBuilder()
            .withWindowSurfaceDisappeared(mailAppHelper.componentMatcher)
            // We need to verify that after tab tearing we have 2 browser windows
            .withTopVisibleApps(browserAppHelper.componentMatcher, browserAppHelper.componentMatcher)
            .waitForAndVerify()
    }