Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REGRESSION]: storageState: undefined does not disable the storageState, it uses global one. #17396

Closed
mxschmitt opened this issue Sep 16, 2022 · 2 comments
Assignees

Comments

@mxschmitt
Copy link
Member

mxschmitt commented Sep 16, 2022

When having a global storageState defined inside the config and the customer uses test.use({ storageState: undefined }) it will keep the global storageState instead of disabling the storageState.

This was working fine in 1.24 and broke most likely in #16026.

Filed in Slack here: https://playwright.slack.com/archives/CSUHZPVLM/p1663240303835349

Relates #15977

@daddyman
Copy link

Since this has regressed again I came up with a workaround. Instead of setting the storage state to undefined I do the following and in playwright 1.25.2 it seems to work for me.

test.use({ storageState: { cookies: [], origins: [] } });

@herodriguez7
Copy link

Hello all,

So was this fixed? Or we have to modify our tests as a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants