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';
|
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 }) {
|
test('androidDevice.webView', async function({ androidDevice }) {
|
||||||
expect(androidDevice.webViews().length).toBe(0);
|
expect(androidDevice.webViews().length).toBe(0);
|
||||||
await androidDevice.shell('am start org.chromium.webview_shell/.WebViewBrowserActivity');
|
await androidDevice.shell('am start org.chromium.webview_shell/.WebViewBrowserActivity');
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue