Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

test(ui): cap defensive waitForLoadState with 3s timeout (#4215)

LearningCircuit5aa5ef667bd9
diff --git a/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js b/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js
index 7fb154eb93..f1406b6dbc 100644
--- a/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js
+++ b/tests/ui_tests/playwright/tests/all-pages-mobile.spec.js
@@ -377,8 +377,11 @@ test.describe('All Pages - Content Above Mobile Nav', () => {
return panels.length === 0 || Array.from(panels).every(el => el.style.display === 'none' || el.offsetHeight === 0);
}, { timeout: 5000 }).catch(() => {});
- // Ensure page is fully loaded before heavy DOM operations (WebKit stability)
- await page.waitForLoadState('load').catch(() => {});
+ // Ensure page is fully loaded before heavy DOM operations (WebKit stability).
+ // Cap with an explicit short timeout: without it, the default navigationTimeout
+ // (30s) silently consumes the entire test budget when WebKit is slow to fire
+ // `load`, leaving zero time for the DOM walk below.
+ await page.waitForLoadState('load', { timeout: 3000 }).catch(() => {});
// Scroll to bottom to check last content
await page.evaluate(() => window.scrollTo(0, document.body.scrollHeight));