We are struggling in deciding scope of end-to-end tests. As per our understanding, we have automated the form exactly the way users interact with it. below are the steps user perform while submitting the form.
Step 1. User fills the form
Step 2. If all the validation passes. We submit the form using an API.
Step 3. We show success/failure message to the user
In automation, Success and failure of the form is decided by the message we showed in step 3
Now, here are the questions
- How do we ensure that all the information filled by the user is passed to an API? Relying on the success/failure message may not be enough specially in case of optional fields.
- Should we worry about this case at all?
- Should this case be covered in E2E tests at all? Or can this be verified with any other kind of testing?
We are using Cypress for automation(If this helps)