From 6b5ab68e7053302f7cf25c46ec0a728463871dde Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 19 Nov 2019 13:51:09 -0800 Subject: [PATCH] test: fix failing chromium tests (#26) --- test/frame.spec.js | 4 ++-- test/ignorehttpserrors.spec.js | 4 ++-- test/launcher.spec.js | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/frame.spec.js b/test/frame.spec.js index e2d9be5f95..b4d6951664 100644 --- a/test/frame.spec.js +++ b/test/frame.spec.js @@ -72,10 +72,10 @@ module.exports.addTests = function({testRunner, expect, FFOX, CHROME, WEBKIT}) { await page.goto(server.PREFIX + '/frames/nested-frames.html'); expect(utils.dumpFrames(page.mainFrame())).toEqual([ 'http://localhost:/frames/nested-frames.html', + ' http://localhost:/frames/frame.html (aframe)', ' http://localhost:/frames/two-frames.html (2frames)', - ' http://localhost:/frames/frame.html (uno)', ' http://localhost:/frames/frame.html (dos)', - ' http://localhost:/frames/frame.html (aframe)' + ' http://localhost:/frames/frame.html (uno)', ]); }); it('should send events when frames are manipulated dynamically', async({page, server}) => { diff --git a/test/ignorehttpserrors.spec.js b/test/ignorehttpserrors.spec.js index 0d25fd280d..b440b6ee52 100644 --- a/test/ignorehttpserrors.spec.js +++ b/test/ignorehttpserrors.spec.js @@ -43,10 +43,10 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, p page.goto(httpsServer.EMPTY_PAGE) ]); const securityDetails = response.securityDetails(); - expect(securityDetails.issuer()).toBe('playwright-tests'); + expect(securityDetails.issuer()).toBe('puppeteer-tests'); const protocol = serverRequest.socket.getProtocol().replace('v', ' '); expect(securityDetails.protocol()).toBe(protocol); - expect(securityDetails.subjectName()).toBe('playwright-tests'); + expect(securityDetails.subjectName()).toBe('puppeteer-tests'); expect(securityDetails.validFrom()).toBe(1550084863); expect(securityDetails.validTo()).toBe(33086084863); }); diff --git a/test/launcher.spec.js b/test/launcher.spec.js index 767cc0aa20..354ac61c53 100644 --- a/test/launcher.spec.js +++ b/test/launcher.spec.js @@ -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'); expect(utils.dumpFrames(restoredPage.mainFrame())).toEqual([ 'http://localhost:/frames/nested-frames.html', - ' http://localhost:/frames/two-frames.html (2frames)', - ' http://localhost:/frames/frame.html (uno)', - ' http://localhost:/frames/frame.html (dos)', ' http://localhost:/frames/frame.html (aframe)', + ' http://localhost:/frames/two-frames.html (2frames)', + ' http://localhost:/frames/frame.html (dos)', + ' http://localhost:/frames/frame.html (uno)', ]); expect(await restoredPage.evaluate(() => 7 * 8)).toBe(56); await browser.close();