Update browsercontext-storage-state.spec.ts

Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
Max Schmitt 2024-09-20 09:35:42 +02:00 committed by GitHub
parent 9485091c70
commit a6e4985424
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -277,9 +277,7 @@ it('should work when service worker is intefering', async ({ page, context, serv
expect(storageState.origins[0].localStorage[0]).toEqual({ name: 'foo', value: 'bar' }); expect(storageState.origins[0].localStorage[0]).toEqual({ name: 'foo', value: 'bar' });
}); });
it('should set local storage in third-party context', async ({ contextFactory, server, browserName }) => { it('should set local storage in third-party context', async ({ contextFactory, server }) => {
it.fixme(browserName === 'webkit', 'look into setStorageBlockingPolicy');
const context = await contextFactory({ const context = await contextFactory({
storageState: { storageState: {
cookies: [], cookies: [],
@ -303,9 +301,7 @@ it('should set local storage in third-party context', async ({ contextFactory, s
await context.close(); await context.close();
}); });
it('should roundtrip local storage in third-party context', async ({ page, contextFactory, server, browserName }) => { it('should roundtrip local storage in third-party context', async ({ page, contextFactory, server }) => {
it.fixme(browserName === 'webkit', 'look into setStorageBlockingPolicy');
await page.goto(server.EMPTY_PAGE); await page.goto(server.EMPTY_PAGE);
const frame = await attachFrame(page, 'frame1', server.CROSS_PROCESS_PREFIX + '/empty.html'); const frame = await attachFrame(page, 'frame1', server.CROSS_PROCESS_PREFIX + '/empty.html');
await frame.evaluate(() => window.localStorage.setItem('name1', 'value1')); await frame.evaluate(() => window.localStorage.setItem('name1', 'value1'));