Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: add a test for builtins (#35754)
Dmitry Gozmana4b5c1c46105
diff --git a/tests/page/eval-on-selector-all.spec.ts b/tests/page/eval-on-selector-all.spec.tsindex 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(`+ <script>+ window.Map = () => {};+ </script>+ <button>Click me</button>+ <button>And me</button>+ `);+ const count = await page.$$eval('role=button', els => els.length);+ expect(count).toBe(2);+});