mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-15 06:02:57 +03:00
fix(firefox): bump firefox and fix network with service worker (#2610)
This commit is contained in:
parent
f9633ea9b7
commit
4834e5653d
@ -346,6 +346,11 @@ describe('Page.goto', function() {
|
|||||||
}
|
}
|
||||||
expect(error.message).toContain(url);
|
expect(error.message).toContain(url);
|
||||||
});
|
});
|
||||||
|
it('should be able to navigate to a page controlled by service worker', async({page, server}) => {
|
||||||
|
await page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html');
|
||||||
|
await page.evaluate(() => window.activationPromise);
|
||||||
|
await page.goto(server.PREFIX + '/serviceworkers/fetch/sw.html');
|
||||||
|
});
|
||||||
it('should send referer', async({page, server}) => {
|
it('should send referer', async({page, server}) => {
|
||||||
const [request1, request2] = await Promise.all([
|
const [request1, request2] = await Promise.all([
|
||||||
server.waitForRequest('/grid.html'),
|
server.waitForRequest('/grid.html'),
|
||||||
|
@ -41,7 +41,7 @@ describe('Page.Events.Request', function() {
|
|||||||
await page.evaluate(() => fetch('/empty.html'));
|
await page.evaluate(() => fetch('/empty.html'));
|
||||||
expect(requests.length).toBe(2);
|
expect(requests.length).toBe(2);
|
||||||
});
|
});
|
||||||
it.fail(FFOX)('should report requests and responses handled by service worker', async({page, server}) => {
|
it('should report requests and responses handled by service worker', async({page, server}) => {
|
||||||
// Firefox issues Network.requestWillBeSent and nothing else.
|
// Firefox issues Network.requestWillBeSent and nothing else.
|
||||||
await page.goto(server.PREFIX + '/serviceworkers/fetchdummy/sw.html');
|
await page.goto(server.PREFIX + '/serviceworkers/fetchdummy/sw.html');
|
||||||
await page.evaluate(() => window.activationPromise);
|
await page.evaluate(() => window.activationPromise);
|
||||||
|
Loading…
Reference in New Issue
Block a user