Skip to content

[Feature] Time/Date emulation via e.g. a clock() primitive #6347

@chambo-e

Description

@chambo-e

See #6347 (comment) for a current workaround.

Edited by the Playwright team.


Hello,

We are using playwright to run automated tests on some websites, we record external requests to be able to replace the tests in isolation.
We would love have a way to set the internal clock, same as clock() from cypress to improve reproductibility

This has already been mentioned here #820 but I did not found any follow up issues :)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions