Cypress tests failing in firefox in pages with polling requests #19865
Unanswered
Ollisteka
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a following test in Cypress:
A
Go to B Page
buttonB
It works fine in Chrome, but failing in Firefox, as on the page
B
I have some background polling requests, and when cypress switches to another test and those requests get "canceled" away, I get eitherTypeError: NetworkError when attempting to fetch resource
orAbortError: The operation was aborted
All the requests are using fetch api, by the way.
The possibility to mute those errors through the
uncaught:exception
event seems a bad idea, and so does the idea to do something on the page to cancel the polling, as it is not the thing under testing.Maybe someone has encoutnered this problem too and got some non-hacky solution?
Beta Was this translation helpful? Give feedback.
All reactions