Skip to content

Commit

Permalink
test: fix firefox-beta tests
Browse files Browse the repository at this point in the history
Follow-up to fb76d62 that has a buggy
fixture implementation.
  • Loading branch information
aslushnikov committed Aug 5, 2022
1 parent 97fa251 commit c85e188
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 c85e188

Please sign in to comment.