test: skip scrolling tests on Android (#36195)

Signed-off-by: Max Schmitt <max@schmitt.mx>
Co-authored-by: Dmitry Gozman <dgozman@gmail.com>
This commit is contained in:
Max Schmitt 2025-06-04 14:44:08 +01:00 committed by GitHub
parent 126239bb55
commit 5659432229
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -49,7 +49,8 @@ it('should click for the second time after first timeout', async ({ page, server
expect(await page.evaluate('result')).toBe('Clicked');
});
it('should fail to click the button behind a large header after scrolling around', async ({ page }) => {
it('should fail to click the button behind a large header after scrolling around', async ({ page, isAndroid }) => {
it.skip(isAndroid, 'Different viewport size');
await page.setViewportSize({ width: 500, height: 240 });
await page.setContent(`
<style>

View File

@ -440,7 +440,8 @@ it('should click the button with em border with offset', async ({ page, server,
expect(await page.evaluate('offsetY')).toBe(browserName === 'webkit' ? 12 * 2 + 10 : 10);
});
it('should click a very large button with offset', async ({ page, server, browserName }) => {
it('should click a very large button with offset', async ({ page, server, browserName, isAndroid }) => {
it.fixme(isAndroid, 'Failed to scroll to a particular point');
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => button.style.borderWidth = '8px');
await page.$eval('button', button => button.style.height = button.style.width = '2000px');
@ -451,7 +452,8 @@ it('should click a very large button with offset', async ({ page, server, browse
expect(await page.evaluate('offsetY')).toBe(browserName === 'webkit' ? 1910 + 8 : 1910);
});
it('should click a button in scrolling container with offset', async ({ page, server, browserName }) => {
it('should click a button in scrolling container with offset', async ({ page, server, browserName, isAndroid }) => {
it.fixme(isAndroid, 'Failed to scroll to a particular point');
await page.goto(server.PREFIX + '/input/button.html');
await page.$eval('button', button => {
const container = document.createElement('div');