test(webkit): add a failing test for #11219 (#11233)

This commit is contained in:
Pavel Feldman 2022-01-06 17:13:55 -08:00 committed by GitHub
parent 68f3ed9bd1
commit eaf2507ec1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,12 @@ it('should await navigation when clicking anchor', async ({ page, server }) => {
expect(messages.join('|')).toBe('route|navigated|click');
});
it('should not stall on JS navigation link', async ({ page, browserName }) => {
it.fixme(browserName === 'webkit');
await page.setContent(`<a href="javascript:console.log(1)">console.log</a>`);
await page.click('a');
});
it('should await navigation when clicking anchor programmatically', async ({ page, server }) => {
const messages = initServer(server);
await page.setContent(`<a id="anchor" href="${server.EMPTY_PAGE}">empty.html</a>`);