mardi 4 juin 2019

Is it possible to uninitialize/reinitialize/delete role in testcafe E2E test?

I am using TestCafe for my E2E testing.

Scenario: I am running a test use test runs. For example: first test run execute tests in firefox browser, and next run in chrome (this is just example, I have cases where I need to run e2e tests in different stages as well) . I have used a role. When one test run completes, and it is running another test run, still the role cookie persist, and it acts as the user is logged in.

Expected behavior: Roles should be re-initialized for each run.

Is there some way I can clean the cookie, or un-initialize the roles?

Aucun commentaire:

Enregistrer un commentaire