-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Error when running different projects after each other #20581
Comments
@markbrockhoff This sounds interesting, but we need more information to act on this issue. Could you please provide a repro that we can run locally? |
Hi @dgozman sure. I just reused a repo from my last bug report: https://github.com/markbrockhoff/playwright-vite-4-bug You can simply checkout main and run the prepared npm script "reproduce-issue" to well reproduce the issue :) |
Thank you, I can repro. Debugging notes below Here is the full stack trace:
Logging around vitePlugin, we have the following components:
... and try to find the following one:
|
Context:
Code Snippet
Describe the bug
Hi, I have a playwright component testing setup with two projects. One for component testing and one for integration tests.
When I run one of the projects like so
playwright test -c playwright-ct.config.ts --project=component
and the other project afterwards:playwright test -c playwright-ct.config.ts --project=integration
I get the following error:Everything is good again after I delete the cache under playwright/.cache and run one of the commands again. It looks like the cache should be invalidated due to the changed project which has a different testDir.
The text was updated successfully, but these errors were encountered: