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

[BUG] When using login once using project dependency setup I am getting a browser opening and closing before each test using session storage #33743

Open
Aromal0105 opened this issue Nov 23, 2024 · 1 comment

Comments

@Aromal0105
Copy link

I have implemented login once using project dependency as mentioned in below playwright document.
Link : https://dev.to/playwright/a-better-global-setup-in-playwright-reusing-login-with-project-dependencies-14

I have defined the session storage in project config as in the above document.
But before each test execution using session storage, I can see a browser getting opened and closed.

Below is the actual behaviour:

  1. Dependent setup project runs and saves session storage.
  2. A empty browser is getting opened and closed.
  3. Test are executed in the new browser with login state using saved session storage.

Why is the 2nd step happening. I am not able to figure the issue by debugging.
Is it expected or can anyone help me if you have experienced similar issue before.

@ScarletMcLearn
Copy link

Might be similar to #33733 .

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

2 participants