Question
Hi,
i am trying to set up dynamic usage of session storage for multiple roles like in playwright documentation: https://playwright.dev/docs/auth#multiple-signed-in-roles
Currently i am using use state for one user, and tried to comment it and use across different steps, but it is not possible as i am getting this error:
Most common reasons include:
- You are calling test.use() in a configuration file.
- You are calling test.use() in a file that is imported by the configuration file.
- You have two different versions of @playwright/test. This usually happens
when one of the dependencies in your package.json depends on @playwright/test.
I also tried with .addCookies but it didn't work for me. Do you have any suggestion how to use it?
Question
Hi,
i am trying to set up dynamic usage of session storage for multiple roles like in playwright documentation: https://playwright.dev/docs/auth#multiple-signed-in-roles
Currently i am using use state for one user, and tried to comment it and use across different steps, but it is not possible as i am getting this error:
I also tried with .addCookies but it didn't work for me. Do you have any suggestion how to use it?