Whenever I am clicking on edit submission button then then application navigate me to desired page but after 2 seconds an error page come due to 403 response code in cypress. I also tried to code the same flow using Selenium WebDriver but it's working fine in that. So, problem is related to cypress only not application specific. Please refer below image for detailed view - Just after clicking on edit submission button, application navigate to this desired screen and stays there for only 2 seconds
Just After 2 seconds it reload page and navigate to error page due to 403 response code.
I have also tried storing the session but issue still persist -
Cypress.Commands.add("storeSession",() =>{ Cypress.Cookies.preserveOnce('XASSESSIONID', 'XASID', 'Profile', 'originURI', 'xasid', '_vis_opt_test_cookie', 'SessionTimeZoneOffset', 'DeviceType'); })
If anyone can help me on this, please feel free to post your answers below. Thanks in Advance.