Skip to content

Commit

Permalink
test: fix firefox-beta tests (#16278)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov authored Aug 10, 2022
1 parent 2e242e2 commit 4cbb95e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions tests/config/browserTest.ts
Original file line number Diff line number Diff line change
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 4cbb95e

Please sign in to comment.