mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00: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' } ],
|
}, { scope: 'worker' } ],
|
||||||
|
|
||||||
allowsThirdParty: [async ({ browserName, browserMajorVersion, channel }, run) => {
|
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);
|
await run(false);
|
||||||
else if (channel === 'firefox-beta' && (browserMajorVersion >= 97 && browserMajorVersion < 103))
|
|
||||||
await run(true);
|
|
||||||
else if (browserMajorVersion >= 103)
|
|
||||||
await run(true);
|
|
||||||
}, { scope: 'worker' } ],
|
}, { scope: 'worker' } ],
|
||||||
|
|
||||||
defaultSameSiteCookieValue: [async ({ browserName, browserMajorVersion, channel }, run) => {
|
defaultSameSiteCookieValue: [async ({ browserName, browserMajorVersion, channel }, run) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user