<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version:1.32.2</li>
<li>Operating System: linux</li>
<li>Browser: [All, Chromium, Firefox, WebKit]</li>
<li>Other info:</li>
</ul>
<h3 dir="auto">Source code</h3>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="        docker-compose up --exit-code-from e2e--build e2e"><pre class="notranslate"><code class="notranslate">        docker-compose up --exit-code-from e2e--build e2e
</code></pre></div>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>Run a test in a container in circleCI</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">Delay exit code after the report generation might solve the issue</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/32042806/229803221-5993f7d9-41cf-45c3-8336-514516b27641.png"><img width="731" alt="Screenshot 2023-04-04 at 09 45 34" src="https://user-images.githubusercontent.com/32042806/229803221-5993f7d9-41cf-45c3-8336-514516b27641.png" style="max-width: 100%;"></a></p>
<p dir="auto">In order to show step failure we have to pass --exit-code-from  flag, but this flag will case to terminate the container right away once test is done and playwright return exit code 1, this will case container to terminate before report generating</p>
<h3 dir="auto">System info</h3>
<ul dir="auto">
<li>Playwright Version: [v1.0.0]</li>
<li>Operating System: [Windows 10]</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"> 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">[https://github.com/your_profile/playwright_issue_title]</p>
<p dir="auto">or</p>
<p dir="auto"><strong>Config file</strong></p>
<p dir="auto">readonly msgContainer: Locator;<br>
this.msgContainer = page<br>
.locator(<br>
".ContextContainer.activeTab #MessagesContainerId .scil_label.messageHeaderValue.selectable.messageEmail"<br>
)<br>
.first();<br>
await expect(this.msgContainer).toHaveText(global.grabEmail);</p>
<p dir="auto"><strong>Steps</strong></p>
<ul dir="auto">
<li>[Run the test]</li>
<li>[...]</li>
</ul>
<p dir="auto"><strong>Expected</strong></p>
<p dir="auto">The text of msgContainer should grabbed as as it is.</p>
<p dir="auto"><strong>Actual</strong></p>
<p dir="auto">The value of msgContainer took grabbed with some additional '/'. The real value is ""Spider Man" <a href="mailto:spider.man@gmail.com">spider.man@gmail.com</a>" . But grabbed as ""Spider Man" <a href="mailto:spider.man@gmail.com">spider.man@gmail.com</a>"</p>