mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 21:53:35 +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);
|
||||
});
|
||||
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}) => {
|
||||
const [request1, request2] = await Promise.all([
|
||||
server.waitForRequest('/grid.html'),
|
||||
|
@ -41,7 +41,7 @@ describe('Page.Events.Request', function() {
|
||||
await page.evaluate(() => fetch('/empty.html'));
|
||||
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.
|
||||
await page.goto(server.PREFIX + '/serviceworkers/fetchdummy/sw.html');
|
||||
await page.evaluate(() => window.activationPromise);
|
||||
|
Loading…
Reference in New Issue
Block a user