mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore: add a test for builtins (#35754)
This commit is contained in:
parent
fe258e6568
commit
a4b5c1c461
@ -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);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user