mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-11 04:30:17 +03:00
test: fix 'should climb up to a anchor' test in Firefox (#14275)
This commit is contained in:
parent
679eee9d46
commit
4af778fa46
@ -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(`<a href="javascript:window.__CLICKED=true;" id="outer"><div id="inner" style="pointer-events: none">Inner</div></a>`);
|
||||
// For Firefox its not allowed to return anything: https://bugzilla.mozilla.org/show_bug.cgi?id=1392046
|
||||
await page.setContent(`<a href="javascript:(function(){window.__CLICKED=true})()" id="outer"><div id="inner" style="pointer-events: none">Inner</div></a>`);
|
||||
await page.click('#inner');
|
||||
expect(await page.evaluate('__CLICKED')).toBe(true);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user