Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test(clock): drop the real-time bound from the runFor test (#43480)
Yury Semikhatsky46326023ef5c
diff --git a/tests/library/page-clock.spec.ts b/tests/library/page-clock.spec.tsindex e99d6e26ca..372b640033 100644--- a/tests/library/page-clock.spec.ts+++ b/tests/library/page-clock.spec.ts@@ -151,11 +151,8 @@ it.describe('runFor', () => {setInterval(window.stub, 10000);});- const start = performance.now();await page.clock.runFor('02:34:10');expect(calls.length).toBe(925);- // Nested setTimeout(fn, 0) is clamped to 4ms, so firing 925 timers used to take over 4 seconds.- expect(performance.now() - start).toBeLessThan(2000);});it('CK-012 throws for invalid format', async ({ page, calls }) => {