<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: <code class="notranslate">@playwright/teset@1.34.3</code></li>
<li>Operating System: OpenSUSE Leap 15.4</li>
<li>Browser: Electron</li>
<li>Other info:</li>
</ul>
<p dir="auto"></p><div class="Box Box--condensed my-2">
  <div class="Box-header f6">
    <p class="mb-0 text-bold">
      <a href="https://github.com/microsoft/playwright/blob/6db64985656b5a536b9aa8f1405356380dbc5d58/packages/playwright-core/src/server/trace/recorder/tracing.ts#L176">playwright/packages/playwright-core/src/server/trace/recorder/tracing.ts</a>
    </p>
    <p class="mb-0 color-fg-muted">
         Line 176
      in
      <a data-pjax="true" class="commit-tease-sha" href="/microsoft/playwright/commit/6db64985656b5a536b9aa8f1405356380dbc5d58">6db6498</a>
    </p>
  </div>
  <div itemprop="text" class="Box-body p-0 blob-wrapper blob-wrapper-embedded data">
    <table class="highlight tab-size mb-0 js-file-line-container" data-tab-size="8" data-paste-markdown-skip="">

        <tbody><tr class="border-0">
          <td id="L176" class="blob-num border-0 px-3 py-0 color-bg-default" data-line-number="176"></td>
          <td id="LC176" class="blob-code border-0 px-3 py-0 color-bg-default blob-code-inner js-file-line"> <span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-en">_changeTraceName</span><span class="pl-kos">(</span><span class="pl-smi">this</span><span class="pl-kos">.</span><span class="pl-c1">_state</span><span class="pl-kos">,</span> <span class="pl-s1">options</span><span class="pl-kos">.</span><span class="pl-c1">name</span><span class="pl-kos">)</span><span class="pl-kos">;</span> </td>
        </tr>
    </tbody></table>
  </div>
</div>
<br>
That line needs an <code class="notranslate">await</code>.<p></p>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I provided exact source code that allows reproducing the issue locally.</li>
</ul>




<p dir="auto"><strong>Link to the GitHub repository with the repro</strong></p>
<p dir="auto">Unfortunately, I am having difficulty producing a minimal test case.<br>
I am seeing errors along the lines of:</p>
<blockquote>
<p dir="auto">tracing.stop: ENOENT: no such file or directory, open '/tmp/playwright-artifacts-GZT396/0ff296554d68f4361c8d9ce7c529610f-pwnetcopy-1.network'</p>
</blockquote>
<p dir="auto">This happens when there's a test failure, and on per-describe <code class="notranslate">afterAll</code> I'm calling  (effectively) <code class="notranslate">_electron.launch().context().tracing.stop()</code>.  This also produces truncated trace zip files (which are unusable).  Manually hacking the installed <code class="notranslate">playwright-core</code> to add an <code class="notranslate">await</code> at the indicated position fixes the issue.</p>
<p dir="auto">While my repository is at <a href="https://github.com/mook-as/rd/">https://github.com/mook-as/rd/</a> I doubt that will be useful in reproducing the bug.</p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Run the test (<code class="notranslate">npm run test:e2e e2e/preferences.spec.ts</code> in my repo).</li>
<li>When it fails, try to use the produced trace file (<code class="notranslate">e2e/reports/*.zip</code> in my case) at <a href="https://trace.playwright.dev/" rel="nofollow">https://trace.playwright.dev/</a></li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">The trace zip file works correctly.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">The trace zip file is truncated, because an exception was thrown in the middle of writing it.</p>
<p dir="auto"><strong>Additional Information</strong></p>
<p dir="auto">I'm not certain I can deal with the CLA, so I'm not producing a PR directly. Sorry about that.</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.32.3]</li>
<li>Operating System: [Windows]</li>
<li>Browser: [All]</li>
<li>Other info: I don't have this issue on Mac OS this is Windows only!<br>
in .gitignore tests dir is ignored but with exclusions: <a href="https://github.com/tagspaces/tagspaces/blob/execute-playwright-without-jest/.gitignore#L94">https://github.com/tagspaces/tagspaces/blob/execute-playwright-without-jest/.gitignore#L94</a></li>
</ul>
<h3 dir="auto">Source code</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I provided exact source code that allows reproducing the issue locally.</li>
</ul>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>clone tagspaces repo: git clone <a href="https://github.com/tagspaces/tagspaces">https://github.com/tagspaces/tagspaces</a></li>
<li>npm install &amp;&amp; npm run build-e2e</li>
<li>You can repeat this issue removing 'cross-env' from this command line:<br>
<a href="https://github.com/tagspaces/tagspaces/blob/execute-playwright-without-jest/package.json#L122">https://github.com/tagspaces/tagspaces/blob/execute-playwright-without-jest/package.json#L122</a><br>
and run <code class="notranslate">npm run test-playwright</code></li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Playwright to find tests in testing dir defined in config:<br>
<a href="https://github.com/tagspaces/tagspaces/blob/execute-playwright-without-jest/playwright.config.js#L13">https://github.com/tagspaces/tagspaces/blob/execute-playwright-without-jest/playwright.config.js#L13</a></p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">[Describe actual behavior]</p>
<p dir="auto"><a href="https://github.com/tagspaces/tagspaces/actions/runs/4809491601/jobs/8560812420">https://github.com/tagspaces/tagspaces/actions/runs/4809491601/jobs/8560812420</a></p>
<p dir="auto">No tests found error in github actions</p>