diff --git a/tests/library/browsercontext-cookies.spec.ts b/tests/library/browsercontext-cookies.spec.ts index 9651af88167543..4731c7e4b9cf3a 100644 --- a/tests/library/browsercontext-cookies.spec.ts +++ b/tests/library/browsercontext-cookies.spec.ts @@ -350,7 +350,7 @@ it('should be able to send third party cookies via an iframe', async ({ browser, } }); -it('should support requestStorageAccess', async ({ page, server, browserName, isMac, isLinux, isWindows }) => { +it('should support requestStorageAccess', async ({ page, server, channel, browserName, isMac, isLinux, isWindows }) => { it.info().annotations.push({ type: 'issue', description: 'https://github.com/microsoft/playwright/issues/17285' }); it.skip(browserName === 'chromium', 'requestStorageAccess API is not available in Chromium'); server.setRoute('/set-cookie.html', (req, res) => { @@ -370,9 +370,8 @@ it('should support requestStorageAccess', async ({ page, server, browserName, is server.waitForRequest('/title.html'), frame.evaluate(() => fetch('/title.html')) ]); - expect(serverRequest.headers.cookie).toBe('name=value'); + expect(serverRequest.headers.cookie).toBe(channel === 'firefox-beta' ? undefined : 'name=value'); } - return; } else { if (isLinux && browserName === 'webkit') expect(await frame.evaluate(() => document.hasStorageAccess())).toBeTruthy();