Unable to validate pathname once a form was sent #26405
Unanswered
osoriosara98
asked this question in
Questions and Help
Replies: 1 comment 1 reply
-
A form submission should trigger requests sent by the app. Have you tried intercepting and waiting on those before the page redirects? Alternatively, you can check the page for any loading icons or new page elements. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
-
I'm trying to validate that the user was redirected to a thank you page after sending a form
I used this line after completing the form and clicking on submit.
cy.location('pathname').should('eq', '/thank-you/')
Beta Was this translation helpful? Give feedback.
All reactions