tests: mark failing android tests (#14542)

This commit is contained in:
Andrey Lushnikov 2022-06-02 05:34:05 -06:00 committed by GitHub
parent 2825cfc0f0
commit e185082a47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 4 deletions

View File

@ -106,7 +106,8 @@ it('should wait for frame 2', async ({ page, server }) => {
await page.frameLocator('iframe').locator('button').click();
});
it('should wait for frame to go', async ({ page, server }) => {
it('should wait for frame to go', async ({ page, server, isAndroid }) => {
it.fail(isAndroid, 'iframe is not removed on Android');
await routeIframe(page);
await page.goto(server.EMPTY_PAGE);
setTimeout(() => page.$eval('iframe', e => e.remove()).catch(() => {}), 300);

View File

@ -634,9 +634,10 @@ it('should properly report window.stop()', async ({ page, server, browserName })
await page.goto(server.PREFIX + '/window-stop.html');
});
it('should return from goto if new navigation is started', async ({ page, server, browserName, isElectron }) => {
it('should return from goto if new navigation is started', async ({ page, server, browserName, isElectron, isAndroid }) => {
it.fixme(browserName === 'webkit', 'WebKit has a bug where Page.frameStoppedLoading is sent too early.');
it.fixme(isElectron, 'Fails on Electron');
it.fail(isAndroid, 'Navigation gets aborted on Android');
server.setRoute('/slow.js', async (req, res) => void 0);
let finished = false;
const navigation = page.goto(server.PREFIX + '/load-event/load-event.html').then(r => {

View File

@ -114,7 +114,8 @@ it('should get the same headers as the server CORS', async ({ page, server, brow
expect(headers).toEqual(serverRequest.headers);
});
it('should not get preflight CORS requests when intercepting', async ({ page, server, browserName }) => {
it('should not get preflight CORS requests when intercepting', async ({ page, server, browserName, isAndroid }) => {
it.fail(isAndroid, 'Playwright does not get CORS pre-flight on Android');
await page.goto(server.PREFIX + '/empty.html');
const requests = [];

View File

@ -599,7 +599,8 @@ it('should allow null origin for about:blank', async ({ page, server, browserNam
expect(await response.headerValue('Access-Control-Allow-Origin')).toBe('null');
});
it('should respect cors overrides', async ({ page, server, browserName }) => {
it('should respect cors overrides', async ({ page, server, browserName, isAndroid }) => {
it.fail(isAndroid, 'no cors error in android emulator');
await page.goto(server.EMPTY_PAGE);
server.setRoute('/something', (request, response) => {
if (request.method === 'OPTIONS') {