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

Commit 0a545eac authored by Sergey Pinkevich's avatar Sergey Pinkevich
Browse files

[E2E test] Close Chrome popups during instrumentation run

Clear storage after test is finished to prevent hitting Chrome Windows restriction

Bug: 414363435
Flag: EXEMPT no flag is needed for e2e test
Test: atest PlatformScenarioTests:TabTearingDragAndDropTest

Change-Id: I1bd07a8feec33f23ec993e360b4f62a7afa6b609
parent 6d3ea7d0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -59,6 +59,7 @@ abstract class TabTearingDragAndDrop(val rotation: Rotation = Rotation.ROTATION_
        }
        ChangeDisplayOrientationRule.setRotation(rotation)
        browserDesktopAppHelper.enterDesktopMode(wmHelper, device)
        browserAppHelper.closePopupsIfNeeded(device)
    }

    @Test
@@ -79,6 +80,9 @@ abstract class TabTearingDragAndDrop(val rotation: Rotation = Rotation.ROTATION_

    @After
    fun teardown() {
        // Tab tearing creates a new window. We want to make sure to clear storage (and remove all
        // opened windows) to prevent hitting the Chrome window limit.
        browserAppHelper.clearStorage()
        browserDesktopAppHelper.exit(wmHelper)
    }
}
 No newline at end of file