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: rebase modernizer Linux tests (#32268)
Max Schmitt8c0e173d6c7d
diff --git a/tests/assets/modernizr/mobile-safari-14-1.json b/tests/assets/modernizr/mobile-safari-14-1.jsonindex a67ccfb232..4e959333fa 100644--- a/tests/assets/modernizr/mobile-safari-14-1.json+++ b/tests/assets/modernizr/mobile-safari-14-1.json@@ -29,7 +29,7 @@"htmlimports": false,"history": true,"ie8compat": false,- "applicationcache": true,+ "applicationcache": false,"blobconstructor": true,"blob-constructor": true,"cookies": true,@@ -166,7 +166,7 @@"srcdoc": true,"imgcrossorigin": true,"hashchange": true,- "inputsearchevent": true,+ "inputsearchevent": false,"ambientlight": false,"datalistelem": true,"videoloop": true,diff --git a/tests/assets/modernizr/safari-14-1.json b/tests/assets/modernizr/safari-14-1.jsonindex 5be7c70bcc..5d39648297 100644--- a/tests/assets/modernizr/safari-14-1.json+++ b/tests/assets/modernizr/safari-14-1.json@@ -29,7 +29,7 @@"htmlimports": false,"history": true,"ie8compat": false,- "applicationcache": true,+ "applicationcache": false,"blobconstructor": true,"blob-constructor": true,"cookies": true,@@ -166,7 +166,7 @@"srcdoc": true,"imgcrossorigin": true,"hashchange": true,- "inputsearchevent": true,+ "inputsearchevent": false,"ambientlight": false,"datalistelem": true,"videoloop": true,diff --git a/tests/library/modernizr.spec.ts b/tests/library/modernizr.spec.tsindex 327a3c4169..9db5b24aa5 100644--- a/tests/library/modernizr.spec.ts+++ b/tests/library/modernizr.spec.ts@@ -32,7 +32,6 @@ async function checkFeatures(name: string, context: any, server: any) {it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMac }) => {it.skip(browserName !== 'webkit');- it.skip(browserName === 'webkit' && platform === 'darwin', 'WebKit for macOS 10.15 is frozen.');it.skip(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 22, 'Modernizr uses WebGL which is not available in macOS-13 - https://bugs.webkit.org/show_bug.cgi?id=278277');const context = await browser.newContext({deviceScaleFactor: 2@@ -41,6 +40,7 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMif (platform === 'linux') {expected.subpixelfont = false;+ expected.speechrecognition = false;if (headless)expected.todataurljpeg = false;@@ -56,7 +56,6 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMif (platform === 'win32') {expected.datalistelem = false;- expected.fileinputdirectory = false;expected.getusermedia = false;expected.peerconnection = false;expected.speechrecognition = false;@@ -64,6 +63,7 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMexpected.todataurljpeg = false;expected.unicode = false;expected.webaudio = false;+ expected.gamepads = false;expected.input.list = false;expected.inputtypes.color = false;@@ -72,10 +72,8 @@ it('safari-14-1', async ({ browser, browserName, platform, server, headless, isMexpected.inputtypes.time = false;}- if (isMac && parseInt(os.release(), 10) > 20) {+ if (isMac && parseInt(os.release(), 10) > 20)expected.applicationcache = false;- expected.inputsearchevent = false;- }expect(actual).toEqual(expected);});@@ -99,6 +97,7 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, isif (platform === 'linux') {expected.subpixelfont = false;+ expected.speechrecognition = false;if (headless)expected.todataurljpeg = false;@@ -114,7 +113,6 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, isif (platform === 'win32') {expected.datalistelem = false;- expected.fileinputdirectory = false;expected.getusermedia = false;expected.peerconnection = false;expected.speechrecognition = false;@@ -122,6 +120,7 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, isexpected.todataurljpeg = false;expected.unicode = false;expected.webaudio = false;+ expected.gamepads = false;expected.input.list = false;expected.inputtypes.color = false;@@ -133,11 +132,6 @@ it('mobile-safari-14-1', async ({ playwright, browser, browserName, platform, isexpected.inputtypes.time = false;}- if (isMac && parseInt(os.release(), 10) > 20) {- expected.applicationcache = false;- expected.inputsearchevent = false;- }-expect(actual).toEqual(expected);});