From a4b5c1c46105c9c1d133a7c24f432e471d23c2f4 Mon Sep 17 00:00:00 2001 From: Dmitry Gozman Date: Mon, 28 Apr 2025 07:36:53 +0000 Subject: [PATCH] chore: add a test for builtins (#35754) --- tests/page/eval-on-selector-all.spec.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/tests/page/eval-on-selector-all.spec.ts b/tests/page/eval-on-selector-all.spec.ts index 92fae9501b..7ce6412b28 100644 --- a/tests/page/eval-on-selector-all.spec.ts +++ b/tests/page/eval-on-selector-all.spec.ts @@ -83,3 +83,15 @@ it('should work with bogus Array.from', async ({ page, server }) => { const divsCount = await page.$$eval('css=div', divs => divs.length); expect(divsCount).toBe(3); }); + +it.fixme('should work with broken Map', async ({ page, server }) => { + await page.setContent(` + + + + `); + const count = await page.$$eval('role=button', els => els.length); + expect(count).toBe(2); +});