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
fix(firefox): unskip worker error test (#2805)
Dmitry Gozman0d16b16e918c
diff --git a/browsers.json b/browsers.jsonindex 2a4d08b9f9..d4c37a7817 100644--- a/browsers.json+++ b/browsers.json@@ -7,7 +7,7 @@},{"name": "firefox",- "revision": "1117"+ "revision": "1118"},{"name": "webkit",diff --git a/test/workers.spec.js b/test/workers.spec.jsindex 9f716ea4ee..95588220c3 100644--- a/test/workers.spec.js+++ b/test/workers.spec.js@@ -62,10 +62,15 @@ describe('Workers', function() {const worker = await workerCreatedPromise;expect(await worker.evaluate('1+1')).toBe(2);});- it.fail(FFOX)('should report errors', async function({page}) {- // Times out after the 4/15/2020 roll.+ it('should report errors', async function({page}) {const errorPromise = new Promise(x => page.on('pageerror', x));- page.evaluate(() => new Worker(URL.createObjectURL(new Blob([`setTimeout(() => { throw new Error('this is my error'); })`], {type: 'application/javascript'}))));+ page.evaluate(() => new Worker(URL.createObjectURL(new Blob([`+ setTimeout(() => {+ // Do a console.log just to check that we do not confuse it with an error.+ console.log('hey');+ throw new Error('this is my error');+ })+ `], {type: 'application/javascript'}))));const errorLog = await errorPromise;expect(errorLog.message).toContain('this is my error');});