From fbb44b043bd208d01fab2f3d4ac4d50e923922df Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Wed, 12 Jun 2024 23:58:36 +0200 Subject: [PATCH] test: skip folder upload tests on macOS-12 and Android (#31281) --- tests/page/page-set-input-files.spec.ts | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/tests/page/page-set-input-files.spec.ts b/tests/page/page-set-input-files.spec.ts index cbada40fcc..22ce7151cd 100644 --- a/tests/page/page-set-input-files.spec.ts +++ b/tests/page/page-set-input-files.spec.ts @@ -37,7 +37,10 @@ it('should upload the file', async ({ page, server, asset }) => { }, input)).toBe('contents of the file'); }); -it('should upload a folder', async ({ page, server, browserName, headless, browserVersion }) => { +it('should upload a folder', async ({ page, server, browserName, headless, browserVersion, isAndroid }) => { + it.skip(isAndroid); + it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen'); + await page.goto(server.PREFIX + '/input/folderupload.html'); const input = await page.$('input'); const dir = path.join(it.info().outputDir, 'file-upload-test'); @@ -67,7 +70,10 @@ it('should upload a folder', async ({ page, server, browserName, headless, brows } }); -it('should upload a folder and throw for multiple directories', async ({ page, server, browserName, headless, browserMajorVersion }) => { +it('should upload a folder and throw for multiple directories', async ({ page, server, isAndroid }) => { + it.skip(isAndroid); + it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen'); + await page.goto(server.PREFIX + '/input/folderupload.html'); const input = await page.$('input'); const dir = path.join(it.info().outputDir, 'file-upload-test'); @@ -83,7 +89,10 @@ it('should upload a folder and throw for multiple directories', async ({ page, s ])).rejects.toThrow('Multiple directories are not supported'); }); -it('should throw if a directory and files are passed', async ({ page, server, browserName, headless, browserMajorVersion }) => { +it('should throw if a directory and files are passed', async ({ page, server, isAndroid }) => { + it.skip(isAndroid); + it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen'); + await page.goto(server.PREFIX + '/input/folderupload.html'); const input = await page.$('input'); const dir = path.join(it.info().outputDir, 'file-upload-test'); @@ -97,7 +106,10 @@ it('should throw if a directory and files are passed', async ({ page, server, br ])).rejects.toThrow('File paths must be all files or a single directory'); }); -it('should throw when uploading a folder in a normal file upload input', async ({ page, server, browserName, headless, browserMajorVersion }) => { +it('should throw when uploading a folder in a normal file upload input', async ({ page, server, isAndroid }) => { + it.skip(isAndroid); + it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen'); + await page.goto(server.PREFIX + '/input/fileupload.html'); const input = await page.$('input'); const dir = path.join(it.info().outputDir, 'file-upload-test');