fix(edge): improve the anchor test
This commit is contained in:
Родитель
9b225f2ad4
Коммит
8c17704244
|
@ -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(`<a href="javascript:(function(){window.__CLICKED=true})()" id="outer"><div id="inner" style="pointer-events: none">Inner</div></a>`);
|
||||
// Note the intermediate div - it is necessary, otherwise <a><non-clickable/></a> is not recognized as a clickable link.
|
||||
await page.setContent(`<a href="javascript:(function(){window.__CLICKED=true})()" id="outer"><div id="intermediate"><div id="inner" style="pointer-events: none">Inner</div></div></a>`);
|
||||
await page.click('#inner');
|
||||
expect(await page.evaluate('__CLICKED')).toBe(true);
|
||||
});
|
||||
|
|
Загрузка…
Ссылка в новой задаче