-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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]: Origin Private File System is not isolated between tests #29901
Comments
While this statement is correct when running the tests on CI, via Terminal or via UI Mode, in VSCode this is only a best-effort approach as you discovered. We do this in order to provide a re-usable page experience instead of flickering / having a new page for each test. (So better DX while we hunt the edge-cases like this one). Thanks for writing a test! I created a fix for it. |
Fixes #29901 This clears the Origin Private File System API when using VSCode extension.
Reopening since it caused a upstream Chromium bug, we'll revisit it in the future once the Chromium bug has been fixed. |
Why was this issue closed?Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable. Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated. |
@mxschmitt it looks like the chromium bug was incidentally fixed. I don't need the fix anymore, but I'm wondering whether the fix should be re-applied, even though I do see there was no test in chromium added for it.
…On August 16, 2024 2:31:11 AM GMT+02:00, Pavel Feldman ***@***.***> wrote:
#### Why was this issue closed?
Thank you for your contribution to our project. This issue has been closed due to its limited upvotes and recent activity, and insufficient feedback for us to effectively act upon. Our priority is to focus on bugs that reflect higher user engagement and have actionable feedback, to ensure our bug database stays manageable.
Should you feel this closure was in error, please create a new issue and reference this one. We're open to revisiting it given increased support or additional clarity. Your understanding and cooperation are greatly appreciated.
--
Reply to this email directly or view it on GitHub:
#29901 (comment)
You are receiving this because you authored the thread.
Message ID: ***@***.***>
|
Version
1.42.1
Steps to reproduce
opfs
test in opfs-should-be-cleared.spec.tsExpected behavior
It succeeds twice
Actual behavior
It fails the second time
Additional context
https://playwright.dev/docs/browser-contexts uses very strong wording: "Every test runs independently from any other test. This means that each test has its own local storage, session storage, cookies etc. ... equivalent to incognito-like profiles ... completely isolated, even when running in a single browser."
This does not seem to apply to the Origin Private File System . The test in the example repo checks whether a directory exists and if not, creates it. The second run sees the directory created by the first one. For comparison, I wrote a similar test with localStorage, where it works as expected.
Environment
The text was updated successfully, but these errors were encountered: