From 4cbb95e06dbd45959c92f6ae620254956532eaad Mon Sep 17 00:00:00 2001 From: Andrey Lushnikov Date: Wed, 10 Aug 2022 02:00:59 -0700 Subject: [PATCH] test: fix firefox-beta tests (#16278) --- tests/config/browserTest.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/config/browserTest.ts b/tests/config/browserTest.ts index a8f5e1676042c..6eaed6cfb7d79 100644 --- a/tests/config/browserTest.ts +++ b/tests/config/browserTest.ts @@ -54,12 +54,12 @@ const test = baseTest.extend }, { 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) => {