Update browsercontext-storage-state.spec.ts
Signed-off-by: Max Schmitt <max@schmitt.mx>
This commit is contained in:
parent
9485091c70
commit
a6e4985424
|
|
@ -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'));
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue