mirror of
https://github.com/microsoft/playwright.git
synced 2025-01-05 19:04:43 +03:00
test: fix firefox-beta tests (#16278)
This commit is contained in:
parent
2e242e2dff
commit
4cbb95e06d
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user