<p dir="auto">For some tests I would like to simulate the current time because my web app have some functionalities that active depends of the time.</p>
<p dir="auto">For example, if the time is between 20hrs and 6hrs the app have to show a maintenance page. This feature will be awesome because I can execute my test in any time of the day, I wouldn’t have to wait for a time to run it.</p>
<p dir="auto">See <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="869719470" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/6347" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/6347/hovercard?comment_id=965887758&amp;comment_type=issue_comment" href="https://github.com/microsoft/playwright/issues/6347#issuecomment-965887758">#6347 (comment)</a> for a current workaround.</p>
<p dir="auto">Edited by the Playwright team.</p>
<hr>
<p dir="auto">Hello,</p>
<p dir="auto">We are using playwright to run automated tests on some websites, we record external requests to be able to replace the tests in isolation.<br>
We would love have a way to set the internal clock, same as <a href="https://docs.cypress.io/api/commands/clock#Syntax" rel="nofollow"><code class="notranslate">clock()</code></a> from cypress to improve reproductibility</p>
<p dir="auto">This has already been mentioned here <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="559331875" data-permission-text="Title is private" data-url="https://github.com/microsoft/playwright/issues/820" data-hovercard-type="issue" data-hovercard-url="/microsoft/playwright/issues/820/hovercard" href="https://github.com/microsoft/playwright/issues/820">#820</a> but I did not found any follow up issues :)</p>