Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: skip SharedArrayBuffer on macOS 12 (#31845)
Max Schmittca149be154fe
diff --git a/tests/library/browsercontext-viewport.spec.ts b/tests/library/browsercontext-viewport.spec.tsindex 3ffaee0ba2..360cc5815d 100644--- a/tests/library/browsercontext-viewport.spec.ts+++ b/tests/library/browsercontext-viewport.spec.ts@@ -181,7 +181,7 @@ browserTest('should be able to get correct orientation angle on non-mobile devicit('should set window.screen.orientation.type for mobile devices', async ({ contextFactory, browserName, server, isMac }) => {it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/31151' });it.skip(browserName === 'firefox', 'Firefox does not support mobile emulation');- it.skip(isMac && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS 12 is frozen and does not support orientation.type override');+ it.skip(browserName === 'webkit' && isMac && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS 12 is frozen and does not support orientation.type override');const context = await contextFactory(devices['iPhone 14']);const page = await context.newPage();await page.goto(server.PREFIX + '/index.html');diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.tsindex bc5fc10cf3..60f09d49e9 100644--- a/tests/library/capabilities.spec.ts+++ b/tests/library/capabilities.spec.ts@@ -19,7 +19,8 @@ import url from 'url';import { contextTest as it, expect } from '../config/browserTest';import { hostPlatform } from '../../packages/playwright-core/src/utils/hostPlatform';-it('SharedArrayBuffer should work @smoke', async function({ contextFactory, httpsServer }) {+it('SharedArrayBuffer should work @smoke', async function({ contextFactory, httpsServer, isMac, browserName }) {+ it.skip(browserName === 'webkit' && isMac && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS 12 is frozen and does not support SharedArrayBuffer');const context = await contextFactory({ ignoreHTTPSErrors: true });const page = await context.newPage();httpsServer.setRoute('/sharedarraybuffer', (req, res) => {diff --git a/tests/page/page-set-input-files.spec.ts b/tests/page/page-set-input-files.spec.tsindex a32db203bd..8e654f06dd 100644--- a/tests/page/page-set-input-files.spec.ts+++ b/tests/page/page-set-input-files.spec.ts@@ -39,7 +39,7 @@ it('should upload the file', async ({ page, server, asset }) => {it('should upload a folder', async ({ page, server, browserName, headless, browserMajorVersion, isAndroid }) => {it.skip(isAndroid);- it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen');+ it.skip(browserName === 'webkit' && 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');@@ -70,9 +70,9 @@ it('should upload a folder', async ({ page, server, browserName, headless, brows}});-it('should upload a folder and throw for multiple directories', async ({ page, server, isAndroid }) => {+it('should upload a folder and throw for multiple directories', async ({ page, server, isAndroid, browserName }) => {it.skip(isAndroid);- it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen');+ it.skip(browserName === 'webkit' && 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');@@ -89,9 +89,9 @@ 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, isAndroid }) => {+it('should throw if a directory and files are passed', async ({ page, server, isAndroid, browserName }) => {it.skip(isAndroid);- it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen');+ it.skip(browserName === 'webkit' && 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');@@ -106,9 +106,9 @@ it('should throw if a directory and files are passed', async ({ page, server, is])).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, isAndroid }) => {+it('should throw when uploading a folder in a normal file upload input', async ({ page, server, isAndroid, browserName }) => {it.skip(isAndroid);- it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen');+ it.skip(browserName === 'webkit' && 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');@@ -120,9 +120,9 @@ it('should throw when uploading a folder in a normal file upload input', async (await expect(input.setInputFiles(dir)).rejects.toThrow('File input does not support directories, pass individual files instead');});-it('should throw when uploading a file in a directory upload input', async ({ page, server, isAndroid, asset }) => {+it('should throw when uploading a file in a directory upload input', async ({ page, server, isAndroid, asset, browserName }) => {it.skip(isAndroid);- it.skip(os.platform() === 'darwin' && parseInt(os.release().split('.')[0], 10) <= 21, 'WebKit on macOS-12 is frozen');+ it.skip(browserName === 'webkit' && 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');