From 8c17704244f2da96aa071a9f5387b6c71f0e8734 Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Tue, 24 May 2022 11:39:00 -0700 Subject: [PATCH] fix(edge): improve the anchor test --- 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 ebe4ce11b1..10421078c1 100644 --- a/tests/page/page-click.spec.ts +++ b/tests/page/page-click.spec.ts @@ -613,7 +613,8 @@ it('should climb up to [role=button]', async ({ page }) => { it('should climb up to a anchor', async ({ page }) => { // For Firefox its not allowed to return anything: https://bugzilla.mozilla.org/show_bug.cgi?id=1392046 - await page.setContent(`
Inner
`); + // Note the intermediate div - it is necessary, otherwise is not recognized as a clickable link. + await page.setContent(`
Inner
`); await page.click('#inner'); expect(await page.evaluate('__CLICKED')).toBe(true); });