Cypress 10x does not honor returned xhr when submitting form #22254
Unanswered
fusionshoes
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey all.
I've been seeing an issue on cypress v10x (since 9.2, actually). When I submit a form the xhr target page is not loaded.
Instead, the current page I'm on is re-loaded.
I'm curious if others have seen this XHR issue, where a page does not redirect properly...?
I know there's not a ton of detail here, but any thoughts or ideas very much appreciated. I'm using cypress v9.1.1 successfully, and I realize it will likely sunset at some point, so I'm hoping for resolution.
Example (add a new user):
/users
, for ex), add all info for that user.submit()
Actual Result:
/users
page simply reloads, with all fields blank when clicking Add User button.submit()
on the form, the json blob from the server is returned into the page (the add user page is not reloaded, just the blob). In that blob, the redirect to the correct page is shown (the app should load the new users page. For example:/users/50
, indicating the user id). This tells me the server side is processing properly.Expected Result:
/users/50
page should load upon either submission methodNotes:
Beta Was this translation helpful? Give feedback.
All reactions