vendredi 20 mars 2020

Pass Fixtures dynamically on Cypress

I had a question regarding the fixtures which I wasn't able to find in the docs. Can we pass the a particular JSON fixture in the command line. For example, I have two json files user1.json and user2.json and on runtime I want to pass the fixture I require for the test.

Can I do something like npx cypress run --fixture name that dynamically passes the json file.

Aucun commentaire:

Enregistrer un commentaire