some-park-44701
07/15/2022, 6:07 AMTypeScript
it('tests some flow', () => {
cy.login('some_user_name');
cy.some_cool_custom_command();
})
Now, instead of testing it with just 'some_user_name', I have a list of perhaps 40 different roles that needs to use that custom command in the flow. For the sake the argument, whatever is done in beforeAll and afterAll must be run for each for the tests.
Is there a good way to reuse the test instead of having to write the same flow 40 times?bitter-fountain-36713
07/15/2022, 6:08 PM