From f39eb70f2f923542a054403816ebc6c2b60d48e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dar=C3=ADo=20Kondratiuk?= Date: Mon, 2 May 2022 03:21:19 -0300 Subject: [PATCH] test: run Frame.evaluate tests on Firefox (#8296) --- src/common/Page.ts | 2 +- test/evaluation.spec.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/common/Page.ts b/src/common/Page.ts index 169c8432cc5..0493a324abc 100644 --- a/src/common/Page.ts +++ b/src/common/Page.ts @@ -2824,7 +2824,7 @@ export class Page extends EventEmitter { } /** - * Generatees a PDF of the page with the `print` CSS media type. + * Generates a PDF of the page with the `print` CSS media type. * @remarks * * NOTE: PDF generation is only supported in Chrome headless mode. diff --git a/test/evaluation.spec.ts b/test/evaluation.spec.ts index e3803d545d4..5ff363f1d1c 100644 --- a/test/evaluation.spec.ts +++ b/test/evaluation.spec.ts @@ -436,7 +436,7 @@ describe('Evaluation specs', function () { }); describe('Frame.evaluate', function () { - itFailsFirefox('should have different execution contexts', async () => { + it('should have different execution contexts', async () => { const { page, server } = getTestState(); await page.goto(server.EMPTY_PAGE); @@ -447,7 +447,7 @@ describe('Evaluation specs', function () { expect(await page.frames()[0].evaluate(() => globalThis.FOO)).toBe('foo'); expect(await page.frames()[1].evaluate(() => globalThis.FOO)).toBe('bar'); }); - itFailsFirefox('should have correct execution contexts', async () => { + it('should have correct execution contexts', async () => { const { page, server } = getTestState(); await page.goto(server.PREFIX + '/frames/one-frame.html');