~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
fix(ci): resolve flaky invalidDocumentIdHandled UI test timeout (#2731)
LearningCircuit68daa575739c
diff --git a/tests/ui_tests/test_error_handling_ci.js b/tests/ui_tests/test_error_handling_ci.jsindex 29c6e7366d..17e5c8478d 100644--- a/tests/ui_tests/test_error_handling_ci.js+++ b/tests/ui_tests/test_error_handling_ci.js@@ -61,24 +61,34 @@ const Error404Tests = {},async invalidDocumentIdHandled(page, baseUrl) {- const response = await navigateTo(page, `${baseUrl}/library/document/invalid-doc-id-12345`);+ // Use fetch instead of page navigation to avoid flaky domcontentloaded timeouts+ // The Flask route returns a simple text "Document not found" with status 404+ const result = await page.evaluate(async (url) => {+ try {+ const response = await fetch(`${url}/library/document/invalid-doc-id-12345`);+ const text = await response.text();+ const bodyText = text.toLowerCase();+ return {+ status: response.status,+ hasErrorText: bodyText.includes('not found') || bodyText.includes('error'),+ redirected: response.redirected,+ finalUrl: response.url+ };+ } catch (e) {+ return { error: e.message };+ }+ }, baseUrl);- const result = await page.evaluate(() => {- const bodyText = document.body.textContent?.toLowerCase() || '';- return {- hasErrorText: bodyText.includes('not found') || bodyText.includes('error'),- hasRedirect: window.location.pathname === '/library',- currentPath: window.location.pathname- };- });+ if (result.error) {+ return { passed: null, skipped: true, message: `Fetch failed: ${result.error}` };+ }- const statusCode = response?.status();- const passed = statusCode === 404 || result.hasErrorText || result.hasRedirect;+ const passed = result.status === 404 || result.hasErrorText || result.redirected;return {passed,message: passed- ? `Invalid document ID handled (status: ${statusCode})`+ ? `Invalid document ID handled (status: ${result.status})`: 'Invalid document ID not handled gracefully'};}