Skip to content

Commit

Permalink
cherry-pick(#16278): test: fix firefox-beta tests (#16409)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Aug 10, 2022
1 parent 1139191 commit 259887f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/config/browserTest.ts
Expand Up @@ -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) => {
Expand Down

0 comments on commit 259887f

Please sign in to comment.