test: make Android green
This commit is contained in:
parent
0711a8b169
commit
98c34ac270
|
|
@ -16,7 +16,8 @@
|
||||||
|
|
||||||
import { test as it, expect } from './pageTest';
|
import { test as it, expect } from './pageTest';
|
||||||
|
|
||||||
it('should outlive frame navigation', async ({ page, server }) => {
|
it('should outlive frame navigation', async ({ page, server, isAndroid }) => {
|
||||||
|
it.fixme(isAndroid, 'Should be fixed when rolling the emulator');
|
||||||
await page.goto(server.EMPTY_PAGE);
|
await page.goto(server.EMPTY_PAGE);
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
await page.goto(server.PREFIX + '/grid.html').catch(() => {});
|
await page.goto(server.PREFIX + '/grid.html').catch(() => {});
|
||||||
|
|
|
||||||
|
|
@ -322,8 +322,9 @@ it('headerValue should return set-cookie from intercepted response', async ({ pa
|
||||||
expect(await response.headerValue('Set-Cookie')).toBe('a=b');
|
expect(await response.headerValue('Set-Cookie')).toBe('a=b');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should complain about bad har', async ({ page, server, isElectron }, testInfo) => {
|
it('should complain about bad har', async ({ page, server, isElectron, isAndroid }, testInfo) => {
|
||||||
it.fixme(isElectron, 'error: Browser context management is not supported.');
|
it.fixme(isElectron, 'error: Browser context management is not supported.');
|
||||||
|
it.fixme(isAndroid);
|
||||||
const harPath = testInfo.outputPath('test.har');
|
const harPath = testInfo.outputPath('test.har');
|
||||||
fs.writeFileSync(harPath, JSON.stringify({ log: {} }), 'utf-8');
|
fs.writeFileSync(harPath, JSON.stringify({ log: {} }), 'utf-8');
|
||||||
let error;
|
let error;
|
||||||
|
|
@ -335,8 +336,9 @@ it('should complain about bad har', async ({ page, server, isElectron }, testInf
|
||||||
expect(error.message).toContain(`Error reading HAR file ${harPath}: Cannot read`);
|
expect(error.message).toContain(`Error reading HAR file ${harPath}: Cannot read`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should complain about no entry found in har', async ({ page, server, isElectron }, testInfo) => {
|
it('should complain about no entry found in har', async ({ page, server, isElectron, isAndroid }, testInfo) => {
|
||||||
it.fixme(isElectron, 'error: Browser context management is not supported.');
|
it.fixme(isElectron, 'error: Browser context management is not supported.');
|
||||||
|
it.fixme(isAndroid);
|
||||||
const harPath = testInfo.outputPath('test.har');
|
const harPath = testInfo.outputPath('test.har');
|
||||||
fs.writeFileSync(harPath, JSON.stringify({ log: { entries: [] } }), 'utf-8');
|
fs.writeFileSync(harPath, JSON.stringify({ log: { entries: [] } }), 'utf-8');
|
||||||
let error;
|
let error;
|
||||||
|
|
@ -348,8 +350,9 @@ it('should complain about no entry found in har', async ({ page, server, isElect
|
||||||
expect(error.message).toBe(`Error reading HAR file ${harPath}: No entry matching ${server.PREFIX + '/one-style.css'}`);
|
expect(error.message).toBe(`Error reading HAR file ${harPath}: No entry matching ${server.PREFIX + '/one-style.css'}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should complain about har + response options', async ({ page, server, isElectron }) => {
|
it('should complain about har + response options', async ({ page, server, isElectron, isAndroid }) => {
|
||||||
it.fixme(isElectron, 'error: Browser context management is not supported.');
|
it.fixme(isElectron, 'error: Browser context management is not supported.');
|
||||||
|
it.fixme(isAndroid);
|
||||||
let error;
|
let error;
|
||||||
await page.route('**/*.css', async route => {
|
await page.route('**/*.css', async route => {
|
||||||
const response = await page.request.fetch(route.request());
|
const response = await page.request.fetch(route.request());
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue