<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.36</li>
<li>Operating System: macOS 13.4.1</li>
<li>Browser: Chromium</li>
</ul>
<p dir="auto">I've looked into <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1311898011" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/15819" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/15819/hovercard" href="https://github.com/microsoft/playwright/issues/15819">#15819</a> &amp; <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1292825955" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/15349" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/15349/hovercard" href="https://github.com/microsoft/playwright/issues/15349">#15349</a> but didn't find a solution for my problem.</p>
<h3 dir="auto">Bug description</h3>
<p dir="auto">I have a monorepo that utilizes yarn workspaces, in this project, I have a package for the Playwright framework and another project that uses this package as a local dependency.<br>
Both package and the test project have their own <code class="notranslate">@playwright/test</code> dependency inside the <code class="notranslate">package.json</code> and both have <code class="notranslate">playwright.config.ts</code>.<br>
The test project imports files from the framework package, such as fixtures and other utilities. The test project holds the tests and the POMs to serve the tests.<br>
When running tests from the test project I'm getting the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Error: Requiring @playwright/test second time, 
First:
Error: "><pre class="notranslate"><code class="notranslate">Error: Requiring @playwright/test second time, 
First:
Error: 
</code></pre></div>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: 1.28.1</li>
<li>Operating System: Ubuntu 20</li>
<li>Browser: All</li>
<li>Other info:</li>
</ul>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Run playwright on a system where multiple users have been using it</li>
</ul>
<p dir="auto"><strong>Actual</strong></p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="Running 651 tests using 2 workers

Error: EACCES: permission denied, open '/tmp/playwright-transform-cache/3f/connectionFailurespec_3fcb2d59d7f1ac9abe23f187eeeed5065482bbfa.map'

  651 skipped
  1 error was not a part of any test, see above for details
"><pre class="notranslate"><code class="notranslate">Running 651 tests using 2 workers

Error: EACCES: permission denied, open '/tmp/playwright-transform-cache/3f/connectionFailurespec_3fcb2d59d7f1ac9abe23f187eeeed5065482bbfa.map'

  651 skipped
  1 error was not a part of any test, see above for details

</code></pre></div>
<p dir="auto">The permissions on /tmp/playwright-transform-cache:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="drwxrwxrwx 162 BrentBaccala BrentBaccala 4096 Mar 21 23:28 /tmp/playwright-transform-cache/"><pre class="notranslate"><code class="notranslate">drwxrwxrwx 162 BrentBaccala BrentBaccala 4096 Mar 21 23:28 /tmp/playwright-transform-cache/
</code></pre></div>
<p dir="auto"><code class="notranslate">BrentBaccala</code> is one of the users on the system.  Permissions on some subdirectories:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="drwxrwxrwx 2 BrentBaccala    BrentBaccala    4096 Feb 21 12:04 3e
drwxr-xr-x 2 MaximKhlobystov MaximKhlobystov 4096 Mar  1 13:44 3f
drwxrwxrwx 2 BrentBaccala    BrentBaccala    4096 Feb 21 12:04 42"><pre class="notranslate"><code class="notranslate">drwxrwxrwx 2 BrentBaccala    BrentBaccala    4096 Feb 21 12:04 3e
drwxr-xr-x 2 MaximKhlobystov MaximKhlobystov 4096 Mar  1 13:44 3f
drwxrwxrwx 2 BrentBaccala    BrentBaccala    4096 Feb 21 12:04 42
</code></pre></div>
<p dir="auto"><code class="notranslate">MaximKhlobystov</code> is also a user on the system, and I'm running this test (that's trying to access <code class="notranslate">3f</code>) as user <code class="notranslate">baccala</code>, so obviously there's a problem.</p>
<p dir="auto">It looks like Maxim is also running Playwright 1.28.1.</p>
<p dir="auto">What explanation is there for how this directory <code class="notranslate">3f</code> was created with these restrictive permissions?  It surely happened on a previous playwright run, and I really don't know what the exact test configuration was that caused this.  The directory is dated March 1, and today is March 21, so reproducing exactly what caused this might be problematic (if it isn't obvious to somebody).</p>