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: fix firefox-beta tests (#16278)
Andrey Lushnikov4cbb95e06dbd
diff --git a/tests/config/browserTest.ts b/tests/config/browserTest.tsindex a8f5e16760..6eaed6cfb7 100644--- a/tests/config/browserTest.ts+++ b/tests/config/browserTest.ts@@ -54,12 +54,12 @@ const test = baseTest.extend<BrowserTestTestFixtures, BrowserTestWorkerFixtures>}, { scope: 'worker' } ],allowsThirdParty: [async ({ browserName, browserMajorVersion, channel }, run) => {- if (browserName !== 'firefox')+ if (browserName === 'firefox' && !channel)+ await run(browserMajorVersion >= 103);+ else if (browserName === 'firefox' && channel === 'firefox-beta')+ await run(browserMajorVersion >= 97 && browserMajorVersion < 103);+ elseawait run(false);- else if (channel === 'firefox-beta' && (browserMajorVersion >= 97 && browserMajorVersion < 103))- await run(true);- else if (browserMajorVersion >= 103)- await run(true);}, { scope: 'worker' } ],defaultSameSiteCookieValue: [async ({ browserName, browserMajorVersion, channel }, run) => {