mirror of
https://github.com/microsoft/playwright.git
synced 2024-10-27 05:46:28 +03:00
test: unflake webview tests (#6644)
We close webviews after each test, for the safe `webViews().length` assertions.
This commit is contained in:
parent
475a417dfc
commit
e804d16dce
@ -16,6 +16,10 @@
|
||||
|
||||
import { androidTest as test, expect } from './androidTest';
|
||||
|
||||
test.afterEach(async ({ androidDevice }) => {
|
||||
await androidDevice.shell('am force-stop org.chromium.webview_shell');
|
||||
});
|
||||
|
||||
test('androidDevice.webView', async function({ androidDevice }) {
|
||||
expect(androidDevice.webViews().length).toBe(0);
|
||||
await androidDevice.shell('am start org.chromium.webview_shell/.WebViewBrowserActivity');
|
||||
|
Loading…
Reference in New Issue
Block a user