Closed alexis-dorosz closed 5 months ago
@alexis-dorosz, do you have any ideas on how to do it? I know that you can do it during render:
const { page } = await render(<Component />,
{
storageState: './.auth/storageState.json',
}
)
but how to do it globally?
hey there ! been struggling with setting localStorage keys for a very basic authentification before every test I am not too familiar with playwright and i've been trying to add a a playwright.config.ts with the "use.storageState" pointing at a json with the following shape with no success
I'v seen your doc recommands cookies, how would you approach localStorage available for every test with safeTest ?
thank you very much