docs: add release video (#31482)

This commit is contained in:
Debbie O'Brien 2024-06-28 20:04:31 +02:00 committed by GitHub
parent 9bc45ea2fc
commit 93d147cf28
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 0 deletions

View file

@ -2,6 +2,7 @@
id: clock id: clock
title: "Clock" title: "Clock"
--- ---
import LiteYouTube from '@site/src/components/LiteYouTube';
## Introduction ## Introduction
@ -353,3 +354,10 @@ await Expect(locator).ToHaveTextAsync("2/2/2024, 10:00:00 AM");
await Page.Clock.RunForAsync(2000); await Page.Clock.RunForAsync(2000);
await Expect(locator).ToHaveTextAsync("2/2/2024, 10:00:02 AM"); await Expect(locator).ToHaveTextAsync("2/2/2024, 10:00:02 AM");
``` ```
## Related Videos
<LiteYouTube
id="54_aC-rVKHg"
title="Playwright 1.45"
/>

View file

@ -8,6 +8,11 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
## Version 1.45 ## Version 1.45
<LiteYouTube
id="54_aC-rVKHg"
title="Playwright 1.45"
/>
### Clock ### Clock
Utilizing the new [Clock] API allows to manipulate and control time within tests to verify time-related behavior. This API covers many common scenarios, including: Utilizing the new [Clock] API allows to manipulate and control time within tests to verify time-related behavior. This API covers many common scenarios, including: