cypress: Click events on svg element generates: CypressError: Timed out retrying: Illegal invocation

Current behavior:

We have a click assertion:

cy.get('[data-role="rater-button"]')
    .first()
    .click();

instead of it clicking and continuing, we get this error: CypressError: Timed out retrying: Illegal invocation

Desired behavior:

It should click and advance.

Steps to reproduce:

Create an svg object, select it and click it.

Versions

Cypess 3.0.3 Mac OS X (10.12.6)

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 14
  • Comments: 30 (12 by maintainers)

Commits related to this issue

Most upvoted comments

@0102qa we’ve already fixed the bug and it will go out in the next release

Yup this was an area that we completely rewrote and it’s a simple fix.

@Bkucera sorry looked to be a version/caching issue. Can now no longer reproduce.

@Bkucera I can open a new issue if that is more clear then communication over a closed one. Let me know, thanks.

Same issue with svg click and aria click

Same issue here clicking on svg 3.0.3