From 4a82b3eca355060d5f0093be4c7a903dfba95a31 Mon Sep 17 00:00:00 2001 From: dominikg Date: Fri, 10 Jun 2022 14:29:56 +0200 Subject: [PATCH] chore: add comment for crude wait in test --- packages/kit/test/apps/basics/test/test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/kit/test/apps/basics/test/test.js b/packages/kit/test/apps/basics/test/test.js index f2947216634b..cdc09a0f6f40 100644 --- a/packages/kit/test/apps/basics/test/test.js +++ b/packages/kit/test/apps/basics/test/test.js @@ -2289,7 +2289,7 @@ test.describe.parallel('Routing', () => { await page.goto('/routing/hashes/target#p2'); await page.keyboard.press(browserName === 'webkit' ? 'Alt+Tab' : 'Tab'); - await page.waitForTimeout(50); + await page.waitForTimeout(50); // give browser a bit of time to complete the native behavior of the key press expect( await page.evaluate( () => document.activeElement?.textContent || 'ERROR: document.activeElement not set'