test: skip failing interception tests in Electron (#8836)

This commit is contained in:
Yury Semikhatsky 2021-09-10 09:33:12 -07:00 committed by GitHub
parent 4e95448887
commit 3c5d8ff18d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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());