mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +03:00
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:
parent
51865fe584
commit
62f7437a2c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user