Skip to content

How to fake clock on web test runner? #2955

Closed
@void-spark

Description

@void-spark

As title, I want to fake the clock (like Fake timers - Sinon.JS - https://sinonjs.org/releases/latest/fake-timers/)
But so far trying to use Sinon for it seems to not work.

I'm running under playwright, which has it's own fake clock support (https://playwright.dev/docs/clock),
but from the test runner tests, I can't reach the page object..

Any suggestions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions