From 4af778fa4690b7cb47e1957186cb53053fcf948b Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Thu, 19 May 2022 16:23:31 +0300 Subject: [PATCH] test: fix 'should climb up to a anchor' test in Firefox (#14275) --- tests/page/page-click.spec.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/page/page-click.spec.ts b/tests/page/page-click.spec.ts index 572f4dd126..ebe4ce11b1 100644 --- a/tests/page/page-click.spec.ts +++ b/tests/page/page-click.spec.ts @@ -612,7 +612,8 @@ it('should climb up to [role=button]', async ({ page }) => { }); it('should climb up to a anchor', async ({ page }) => { - await page.setContent(`
Inner
`); + // For Firefox its not allowed to return anything: https://bugzilla.mozilla.org/show_bug.cgi?id=1392046 + await page.setContent(`
Inner
`); await page.click('#inner'); expect(await page.evaluate('__CLICKED')).toBe(true); });