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 6 years ago
  • Reactions: 15
  • 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

Just upgraded to 3.0.3 in my experience its not only related to SVG but to all css selectors like [aria-label="Title"]', [name=“Title”]', etc.

3.0.2 is working fine! 😄

Yup, for sure a bug in 3.0.3.