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.

fix(tests): bump research-results page-load timeout to 30s in CI (#3616)

LearningCircuitf5583b592e4d
diff --git a/tests/ui_tests/test_research_results.js b/tests/ui_tests/test_research_results.js
index 182c92cc7e..184826711f 100644
--- a/tests/ui_tests/test_research_results.js
+++ b/tests/ui_tests/test_research_results.js
@@ -11,6 +11,9 @@ async function testResearchResults() {
return true;
}
+ // CI runners can be slow; align navigation timeouts with other UI tests.
+ const navTimeout = process.env.CI ? 30000 : 10000;
+
const browser = await puppeteer.launch(getPuppeteerLaunchOptions());
const page = await browser.newPage();
@@ -45,7 +48,7 @@ async function testResearchResults() {
try {
// First check if server is reachable
try {
- await page.goto(baseUrl, { waitUntil: 'domcontentloaded', timeout: 10000 });
+ await page.goto(baseUrl, { waitUntil: 'domcontentloaded', timeout: navTimeout });
} catch (connError) {
if (connError.message.includes('ERR_CONNECTION_REFUSED')) {
console.log('❌ Server is not running on port 5000. Please start the server first.');
@@ -62,7 +65,7 @@ async function testResearchResults() {
console.log('📄 Testing non-existent research ID (expecting proper error handling)...');
await page.goto(`${baseUrl}/results/99999`, {
waitUntil: 'domcontentloaded',
- timeout: 10000
+ timeout: navTimeout
});
console.log('✅ Page loaded, checking error handling...');
@@ -118,7 +121,7 @@ async function testResearchResults() {
console.log('\n📄 Testing research results listing page...');
await page.goto(`${baseUrl}/history/`, {
waitUntil: 'domcontentloaded',
- timeout: 10000
+ timeout: navTimeout
});
await new Promise(resolve => setTimeout(resolve, 2000));