fix(firefox): bump firefox and fix network with service worker (#2610)

This commit is contained in:
Dmitry Gozman 2020-06-17 14:13:56 -07:00 committed by GitHub
parent f9633ea9b7
commit 4834e5653d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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'),

View File

@ -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);