Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: fix failing chromium tests (#26)
Pavel Feldman6b5ab68e7053
diff --git a/test/frame.spec.js b/test/frame.spec.jsindex 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:<PORT>/frames/nested-frames.html',+ ' http://localhost:<PORT>/frames/frame.html (aframe)',' 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 (uno)',]);});it('should send events when frames are manipulated dynamically', async({page, server}) => {diff --git a/test/ignorehttpserrors.spec.js b/test/ignorehttpserrors.spec.jsindex 0d25fd280d..b440b6ee52 100644--- a/test/ignorehttpserrors.spec.js+++ b/test/ignorehttpserrors.spec.js@@ -43,10 +43,10 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, ppage.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.jsindex 767cc0aa20..354ac61c53 100644--- a/test/launcher.spec.js+++ b/test/launcher.spec.js@@ -332,10 +332,10 @@ module.exports.addTests = function({testRunner, expect, defaultBrowserOptions, pconst restoredPage = pages.find(page => page.url() === server.PREFIX + '/frames/nested-frames.html');expect(utils.dumpFrames(restoredPage.mainFrame())).toEqual(['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/frame.html (uno)',' http://localhost:<PORT>/frames/frame.html (dos)',- ' http://localhost:<PORT>/frames/frame.html (aframe)',+ ' http://localhost:<PORT>/frames/frame.html (uno)',]);expect(await restoredPage.evaluate(() => 7 * 8)).toBe(56);await browser.close();