Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore: skip failing android tests 2 (#12647)

Max Schmittd805cd90970b
diff --git a/tests/android/webview.spec.ts b/tests/android/webview.spec.ts
index 58fd4b92ed..ad810e1910 100644
--- a/tests/android/webview.spec.ts
+++ b/tests/android/webview.spec.ts
@@ -21,6 +21,7 @@ test.afterEach(async ({ androidDevice }) => {
});
test('androidDevice.webView', async function({ androidDevice }) {
+ test.slow();
expect(androidDevice.webViews().length).toBe(0);
await androidDevice.shell('am start org.chromium.webview_shell/.WebViewBrowserActivity');
const webview = await androidDevice.webView({ pkg: 'org.chromium.webview_shell' });
diff --git a/tests/page/page-screenshot.spec.ts b/tests/page/page-screenshot.spec.ts
index 1834bbbdc9..312553264b 100644
--- a/tests/page/page-screenshot.spec.ts
+++ b/tests/page/page-screenshot.spec.ts
@@ -478,7 +478,8 @@ it.describe('page screenshot animations', () => {
}
});
- it('should not capture css animations in shadow DOM', async ({ page, server }) => {
+ it('should not capture css animations in shadow DOM', async ({ page, server, isAndroid }) => {
+ it.skip(isAndroid, 'Different viewport');
await page.goto(server.PREFIX + '/rotate-z-shadow-dom.html');
const screenshot = await page.screenshot({
animations: 'disabled',
@@ -492,8 +493,9 @@ it.describe('page screenshot animations', () => {
}
});
- it('should stop animations that happen right before screenshot', async ({ page, server, mode }) => {
+ it('should stop animations that happen right before screenshot', async ({ page, server, mode, isAndroid }) => {
it.skip(mode !== 'default');
+ it.skip(isAndroid, 'Different viewport');
await page.goto(server.PREFIX + '/rotate-z.html');
// Stop rotating bar.
await page.$eval('div', el => el.style.setProperty('animation', 'none'));
@@ -606,7 +608,8 @@ it.describe('page screenshot animations', () => {
expect(screenshot1.equals(screenshot2)).toBe(true);
});
- it('should not change animation with playbackRate equal to 0', async ({ page, server }) => {
+ it('should not change animation with playbackRate equal to 0', async ({ page, server, isAndroid }) => {
+ it.skip(isAndroid, 'Different viewport');
await page.goto(server.PREFIX + '/rotate-z.html');
await page.evaluate(async () => {
window.animation = document.getAnimations()[0];