Skip to content

Commit

Permalink
test: rebaseline requestStorageAccess test for firefox-beta
Browse files Browse the repository at this point in the history
  • Loading branch information
dgozman committed Oct 6, 2022
1 parent 8d078cc commit 80b4310
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/library/browsercontext-cookies.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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();
Expand Down

0 comments on commit 80b4310

Please sign in to comment.