Cypress XHR 400 Error when clicking a button. Running cypress securely. #15008
Unanswered
PwntasticKev
asked this question in
Questions and Help
Replies: 1 comment
-
Hey, if it works manually and not with Cypress you should open the network tab and compare the request sent when you do it manually vs when you do it in Cypress. |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi! I've been working with cypress for one day now. I have a button that will refresh the page once you click on it and some tests after that still go through.
clicking on this button will throw a 400 error. ( post request )
I'm able to click other buttons on the page and can also manually do it within the browser in a new tab. but once the test automates it, it will fail.
I read a few cases:
#1951
#2001
but none seem to be able to solve this issue.
index.js
test.js
cypress.json
Beta Was this translation helpful? Give feedback.
All reactions