Im using Cypress.io to test a third party page.
Now I want to test a login page and have different users. All Users have access to different content, so i have to check if they get the right page. I want to use 1 Test and pass data to this test.
without variables i have this code
cy.xpath("path)
.type('manager')
cy.xpath("path")
.type('password')
cy.xpath('path for login button')
.click()
how can i start doing this? can i use fixtures for this? if yes, how? can i write my login with vaiables into the commands to use it in other tests?
Aucun commentaire:
Enregistrer un commentaire