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
- fixes #2245, ensure that SVG elements can be clicked and focused correctly — committed to cypress-io/cypress by brian-mann 8 years ago
- ensure that SVG elements can be clicked and focused correctly (#2246) fixes #2245 — committed to cypress-io/cypress by brian-mann 8 years ago
- Downgrade to Cypress 3.0.2 until https://github.com/cypress-io/cypress/issues/2245 is fixed — committed to biglotteryfund/blf-alpha by davidrapson 8 years ago
- Test: Try to test Cypress failing test Looks like a bug in Cypress: https://github.com/cypress-io/cypress/issues/2245 — committed to styleguidist/react-styleguidist by deleted user 8 years ago
@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