-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Click events on svg element generates: CypressError: Timed out retrying: Illegal invocation #2245
Comments
Yup, for sure a bug in |
@brian-mann Fyi, this wasn't a problem on |
Yup this was an area that we completely rewrote and it's a simple fix. |
Just upgraded to 3.0.3 in my experience its not only related to SVG but to all css selectors like 3.0.2 is working fine! 😄 |
Can you provide more details? I’m not sure what you mean by “all CSS selectors”. A selector is just a way to target an element it’s not the actual element itself.
Can you provide a small snippet of the underlying HTML structure that you’re interacting with that’s throwing this error?
We are trying to get this bug fix out ASAP.
… On Jul 31, 2018, at 2:30 AM, Steven Bax ***@***.***> wrote:
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.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Sorry false, alarm i landed here because of the |
Same issue here clicking on svg 3.0.3 |
Same issue with svg click and aria click |
Looks like a bug in Cypress: cypress-io/cypress#2245
This worked for me |
Hi @brian-mann, i can reproduce problem for |
@0102qa we've already fixed the bug and it will go out in the next release |
Hello all, I'm not sure, but this might needs reopening. I just installed v3.1.0 and the same behaviour is occuring. I tried switching the button for a span with text (no SVG) and this works. Then I switched the button with SVG for a button with text and this also works. However the difference for me is when I downgrade to 3.0.2 the same error appears. |
@webdevbe can you please put together a minimally reproducible repo showing the problem? We did fix this (and added tests) in |
fwiw |
Hi @brian-mann, You can see the problem here: https://github.com/webdevbe/svg-cypress
Then you can select the project and the spec is called svg-test.js . I tried two instances, one with an svg inside a button (which is the problem in my project) and one where there is just the SVG. Both throw the same error. If you need any extra info, please let me know. Thanks! |
Hi @brian-mann, Were you able to reproduce the issue with my test setup? Thanks |
Hi @bkucera , I tried your suggestions, but they didn't change anything. I then went to one of my colleagues running Linux and there it does work. Personally I'm working on a Windows machine, perhaps this is the reason? Regards |
@webdevbe what version of Chrome are you using? |
@bkucera Version 68.0.3440.106 (Official Build) (64-bit) |
@bkucera I can open a new issue if that is more clear then communication over a closed one. Let me know, thanks. |
I'm also experiencing this error using 3.1.0 on macOS High Sierra, clicking an svg errors with: CypressError: Timed out retrying: Illegal invocation error. Clicking the same selector through JQuery via Chrome console works as expected. |
@mattrlong what version of chrome are you on? I can't reproduce this on linux on chrome 68 |
@webdevbe I think we should keep the issue here (for future reference), but I will reopen if I can get a reproducable |
@bkucera sorry looked to be a version/caching issue. Can now no longer reproduce. |
@webdevbe are you still experiencing this issue? |
@bkucera Yes, I just did a fresh run of the specs. But only on Windows, on Linux it works (as mentioned above). Still the same error : Is there someone else in the team (running Windows) that can copy the example I've setup and test? |
I can try it in a windows VM |
@webdevbe Just fired up a windows 10 vm, the spec passed with both |
@bkucera I don't know what the issue is then. As it seems that I'm the only one experiencing this issue for now, it will probably be something on my configuration.
As I can still continue by applying Thanks for looking into my issue and best regards |
Looks like a bug in Cypress: cypress-io/cypress#2245
Current behavior:
We have a click assertion:
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)
The text was updated successfully, but these errors were encountered: