Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

test: replace setTimeout with builtinSetTimeout in UI mode test (#34885)

Max Schmitt132d93151cd7
diff --git a/tests/playwright-test/ui-mode-test-output.spec.ts b/tests/playwright-test/ui-mode-test-output.spec.ts
index ccec39df74..fa44daabb9 100644
--- a/tests/playwright-test/ui-mode-test-output.spec.ts
+++ b/tests/playwright-test/ui-mode-test-output.spec.ts
@@ -130,7 +130,7 @@ test('should collapse repeated console messages for test', async ({ runUITest })
await new Promise(resolve => {
for (let i = 0; i < 10; ++i)
console.log('page message')
- setTimeout(() => {
+ builtinSetTimeout(() => {
for (let i = 0; i < 10; ++i)
console.log('page message')
resolve()