test: run Frame.evaluate tests on Firefox (#8296)

This commit is contained in:
Darío Kondratiuk 2022-05-02 03:21:19 -03:00 committed by GitHub
parent 94cb08c859
commit f39eb70f2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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.

View File

@ -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');