From 3c5d8ff18d5b6506ae78b64810bf54d78a6ffbbd Mon Sep 17 00:00:00 2001 From: Yury Semikhatsky Date: Fri, 10 Sep 2021 09:33:12 -0700 Subject: [PATCH] test: skip failing interception tests in Electron (#8836) --- tests/page/page-request-fulfill.spec.ts | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/page/page-request-fulfill.spec.ts b/tests/page/page-request-fulfill.spec.ts index 5de4cf8106..85f4cad829 100644 --- a/tests/page/page-request-fulfill.spec.ts +++ b/tests/page/page-request-fulfill.spec.ts @@ -194,7 +194,8 @@ it('should include the origin header', async ({page, server, isAndroid}) => { expect(interceptedRequest.headers()['origin']).toEqual(server.PREFIX); }); -it('should fulfill with fetch result', async ({page, server}) => { +it('should fulfill with fetch result', async ({page, server, isElectron}) => { + it.fixme(isElectron, 'error: Browser context management is not supported.'); await page.route('**/*', async route => { // @ts-expect-error const response = await page._fetch(server.PREFIX + '/simple.json'); @@ -206,7 +207,8 @@ it('should fulfill with fetch result', async ({page, server}) => { expect(await response.json()).toEqual({'foo': 'bar'}); }); -it('should fulfill with fetch result and overrides', async ({page, server}) => { +it('should fulfill with fetch result and overrides', async ({page, server, isElectron}) => { + it.fixme(isElectron, 'error: Browser context management is not supported.'); await page.route('**/*', async route => { // @ts-expect-error const response = await page._fetch(server.PREFIX + '/simple.json'); @@ -225,7 +227,8 @@ it('should fulfill with fetch result and overrides', async ({page, server}) => { expect(await response.json()).toEqual({'foo': 'bar'}); }); -it('should fetch original request and fulfill', async ({page, server}) => { +it('should fetch original request and fulfill', async ({page, server, isElectron}) => { + it.fixme(isElectron, 'error: Browser context management is not supported.'); await page.route('**/*', async route => { // @ts-expect-error const response = await page._fetch(route.request());