<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.32.0]</li>
<li>Operating System: [Windows 11]</li>
<li>Browser: [Chromium]</li>
<li>Other info:</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">I used a template with electron, vite and playwright set up. Running one test passes no problems, but running multiple ones fails with this error <code class="notranslate"> Error: electron.launch: Process failed to launch!</code>. I prepared a simple repo which has the same test duplicated.<br>
Here is a test snippet:</p>
<div class="highlight highlight-source-js notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { test, expect, _electron as electron } from &quot;@playwright/test&quot;;

test(&quot;homepage has title and links to intro page&quot;, async () =&gt; {
  const app = await electron.launch({ args: [&quot;.&quot;, &quot;--no-sandbox&quot;] });
  const page = await app.firstWindow();
  expect(await page.title()).toBe(&quot;Electron + Vite + React&quot;);
  await page.screenshot({ path: &quot;e2e/screenshots/example.png&quot; });
  await app.close();
});"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span><span class="pl-kos">,</span> <span class="pl-s1">_electron</span> <span class="pl-k">as</span> <span class="pl-s1">electron</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">"@playwright/test"</span><span class="pl-kos">;</span>

<span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">"homepage has title and links to intro page"</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span>
  <span class="pl-k">const</span> <span class="pl-s1">app</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">electron</span><span class="pl-kos">.</span><span class="pl-en">launch</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">args</span>: <span class="pl-kos">[</span><span class="pl-s">"."</span><span class="pl-kos">,</span> <span class="pl-s">"--no-sandbox"</span><span class="pl-kos">]</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-k">const</span> <span class="pl-s1">page</span> <span class="pl-c1">=</span> <span class="pl-k">await</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">firstWindow</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-en">expect</span><span class="pl-kos">(</span><span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">title</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">toBe</span><span class="pl-kos">(</span><span class="pl-s">"Electron + Vite + React"</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">screenshot</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">path</span>: <span class="pl-s">"e2e/screenshots/example.png"</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
  <span class="pl-k">await</span> <span class="pl-s1">app</span><span class="pl-kos">.</span><span class="pl-en">close</span><span class="pl-kos">(</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
<span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<p dir="auto"><strong>Link to the GitHub repository with the repro</strong><br>
<a href="https://github.com/IhsenBouallegue/electron-pw">https://github.com/IhsenBouallegue/electron-pw</a></p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>yarn install</li>
<li>yarn e2e</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">All tests run and pass</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">A test is failing because of electron.launch()</p>
<p dir="auto">Hello amazing team. My team really need some small improvements from you:</p>
<ol dir="auto">
<li>Could I ask you about add possibility to put snapshot's picture in some common folder instead of spec name folder. Because better to save some snapshots in one place and not duplicate it in such different folders. <em>(for example: I have 3 spec file spec1.ts, spec2.ts, spec3.ts -it's different tests/suites but as expected I have one file comprising, but I need to keep three folders with one file -&gt; spec1/sample.png; spec2/sample.png; spec3/sample.png)</em></li>
<li>And could we please skip the automatic generation name of snapshots for different OS <em>(for example: I create snapshot step.png, but MacOS it saved as step-drawing.png, linux - step-linux.png</em>). So it's a little bit complexing for us to run tests on different system and keep updating all this bunch of pictures</li>
</ol>
<p dir="auto">Thank you so much!</p>