test: fix failing chromium tests (#26)
This commit is contained in:
parent
4b13b5e3c6
commit
6b5ab68e70
|
|
@ -72,10 +72,10 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) {
|
||||||
await page.goto(server.PREFIX + '/frames/nested-frames.html');
|
await page.goto(server.PREFIX + '/frames/nested-frames.html');
|
||||||
expect(utils.dumpFrames(page.mainFrame())).toEqual([
|
expect(utils.dumpFrames(page.mainFrame())).toEqual([
|
||||||
'http://localhost:<PORT>/frames/nested-frames.html',
|
'http://localhost:<PORT>/frames/nested-frames.html',
|
||||||
|
' http://localhost:<PORT>/frames/frame.html (aframe)',
|
||||||
' http://localhost:<PORT>/frames/two-frames.html (2frames)',
|
' http://localhost:<PORT>/frames/two-frames.html (2frames)',
|
||||||
' http://localhost:<PORT>/frames/frame.html (uno)',
|
|
||||||
' http://localhost:<PORT>/frames/frame.html (dos)',
|
' http://localhost:<PORT>/frames/frame.html (dos)',
|
||||||
' http://localhost:<PORT>/frames/frame.html (aframe)'
|
' http://localhost:<PORT>/frames/frame.html (uno)',
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
it('should send events when frames are manipulated dynamically', async({page, server}) => {
|
it('should send events when frames are manipulated dynamically', async({page, server}) => {
|
||||||
|
|
|
||||||
|
|
@ -43,10 +43,10 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p
|
||||||
page.goto(httpsServer.EMPTY_PAGE)
|
page.goto(httpsServer.EMPTY_PAGE)
|
||||||
]);
|
]);
|
||||||
const securityDetails = response.securityDetails();
|
const securityDetails = response.securityDetails();
|
||||||
expect(securityDetails.issuer()).toBe('playwright-tests');
|
expect(securityDetails.issuer()).toBe('puppeteer-tests');
|
||||||
const protocol = serverRequest.socket.getProtocol().replace('v', ' ');
|
const protocol = serverRequest.socket.getProtocol().replace('v', ' ');
|
||||||
expect(securityDetails.protocol()).toBe(protocol);
|
expect(securityDetails.protocol()).toBe(protocol);
|
||||||
expect(securityDetails.subjectName()).toBe('playwright-tests');
|
expect(securityDetails.subjectName()).toBe('puppeteer-tests');
|
||||||
expect(securityDetails.validFrom()).toBe(1550084863);
|
expect(securityDetails.validFrom()).toBe(1550084863);
|
||||||
expect(securityDetails.validTo()).toBe(33086084863);
|
expect(securityDetails.validTo()).toBe(33086084863);
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -332,10 +332,10 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p
|
||||||
const restoredPage = pages.find(page => page.url() === server.PREFIX + '/frames/nested-frames.html');
|
const restoredPage = pages.find(page => page.url() === server.PREFIX + '/frames/nested-frames.html');
|
||||||
expect(utils.dumpFrames(restoredPage.mainFrame())).toEqual([
|
expect(utils.dumpFrames(restoredPage.mainFrame())).toEqual([
|
||||||
'http://localhost:<PORT>/frames/nested-frames.html',
|
'http://localhost:<PORT>/frames/nested-frames.html',
|
||||||
' http://localhost:<PORT>/frames/two-frames.html (2frames)',
|
|
||||||
' http://localhost:<PORT>/frames/frame.html (uno)',
|
|
||||||
' http://localhost:<PORT>/frames/frame.html (dos)',
|
|
||||||
' http://localhost:<PORT>/frames/frame.html (aframe)',
|
' http://localhost:<PORT>/frames/frame.html (aframe)',
|
||||||
|
' http://localhost:<PORT>/frames/two-frames.html (2frames)',
|
||||||
|
' http://localhost:<PORT>/frames/frame.html (dos)',
|
||||||
|
' http://localhost:<PORT>/frames/frame.html (uno)',
|
||||||
]);
|
]);
|
||||||
expect(await restoredPage.evaluate(() => 7 * 8)).toBe(56);
|
expect(await restoredPage.evaluate(() => 7 * 8)).toBe(56);
|
||||||
await browser.close();
|
await browser.close();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue