test: remove the flaky test we are not going to fix (#4527)

It will just sit here, being flaky, not giving us any information.
This commit is contained in:
Dmitry Gozman 2020-11-25 11:32:33 -08:00 committed by GitHub
parent 51865fe584
commit 62f7437a2c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -477,25 +477,6 @@ it('should fail when canceled by another navigation', async ({page, server}) =>
expect(error.message).toBeTruthy();
});
it('extraHttpHeaders should be pushed to provisional page', (test, parameters) => {
test.flaky('This test is flaky, because we cannot await page.setExtraHTTPHeaders.');
// We need a way to test our implementation by more than just public api.
}, async ({page, server}) => {
await page.goto(server.EMPTY_PAGE);
const pagePath = '/one-style.html';
server.setRoute(pagePath, async (req, res) => {
page.setExtraHTTPHeaders({ foo: 'bar' });
server.serveFile(req, res);
});
const [htmlReq, cssReq] = await Promise.all([
server.waitForRequest(pagePath),
server.waitForRequest('/one-style.css'),
page.goto(server.CROSS_PROCESS_PREFIX + pagePath)
]);
expect(htmlReq.headers['foo']).toBe(undefined);
expect(cssReq.headers['foo']).toBe('bar');
});
it('should work with lazy loading iframes', async ({page, server}) => {
await page.goto(server.PREFIX + '/frames/lazy-frame.html');
expect(page.frames().length).toBe(2);