Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Playwright Clock #3846

Open
aaltat opened this issue Oct 14, 2024 · 0 comments · May be fixed by #3865
Open

Add support for Playwright Clock #3846

aaltat opened this issue Oct 14, 2024 · 0 comments · May be fixed by #3865
Assignees
Labels
enhancement New feature or request priority: critical
Milestone

Comments

@aaltat
Copy link
Member

aaltat commented Oct 14, 2024

Is your feature request related to a problem? Please describe.
Playwright Clock allows users to manipulate and control time within tests, enabling the precise validation of features such as rendering time, timeouts, scheduled tasks without the delays and variability of real-time execution.

Describe the solution you'd like
I would like to have following keywords:

  • Set Time Which will set the clock to desired time. Either by fixed time or by system time. By default use fixed time.
  • Clock Install which will install fake implementations for the time-related functions.
  • Clock Pause At will advance the clock by jumping forward in time and pause the time.
  • Clock Fast Forward will advance the clock by jumping forward in time.
  • Clock Resume will resumes timers.
  • Clock Run For will advance the clock, firing all the time-related callbacks.

More details in PW Clock documentation

@aaltat aaltat added enhancement New feature or request priority: critical labels Oct 14, 2024
@aaltat aaltat added this to the v19.0.0 milestone Oct 14, 2024
@aaltat aaltat self-assigned this Oct 14, 2024
@aaltat aaltat linked a pull request Oct 26, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request priority: critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant