mardi 15 septembre 2020

How Do I Do An End To End Test In Cypress That Validates Different Users Views?

I have an E2E use case where the flow is based on 2 different users seeing different parts of the UI.

e.g.

  • BackOfficeUser user saves a form
  • TraderUser sees the result in a table
  • TraderUser edits the value
  • BackOffice User confirms the edited value

I can test each of these steps individually by mocking the data for each step. However, I want to test the whole flow which also includes making sure the correct data is passed back and forth from the API.

Can Cypress handle test cases that deal with multiple users?

What would and example of that look like?

Aucun commentaire:

Enregistrer un commentaire