test: fix firefox-beta tests (#16278)

This commit is contained in:
Andrey Lushnikov 2022-08-10 02:00:59 -07:00 committed by GitHub
parent 2e242e2dff
commit 4cbb95e06d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
else
await 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) => {