~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: resolve flaky Puppeteer UI tests caused by stale page after frame detachment (#2242)
LearningCircuit10a9e1a171f5
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.jsindex 432e612a62..121fca2e0f 100644--- a/tests/ui_tests/auth_helper.js+++ b/tests/ui_tests/auth_helper.js@@ -329,7 +329,7 @@ class AuthHelper {await Promise.all([this.page.waitForNavigation({waitUntil: 'domcontentloaded',- timeout: 30000 // 30 seconds should be plenty for login redirect+ timeout: AUTH_CONFIG.timeouts.navigation // 60s in CI, 30s locally}),this.page.click('button[type="submit"]')]);diff --git a/tests/ui_tests/test_export_functionality.js b/tests/ui_tests/test_export_functionality.jsindex ea0fe895d5..8486679449 100644--- a/tests/ui_tests/test_export_functionality.js+++ b/tests/ui_tests/test_export_functionality.js@@ -249,7 +249,7 @@ async function createResearchAndWait(page) {async function testExportFunctionality() {const browser = await puppeteer.launch(getPuppeteerLaunchOptions());- const page = await browser.newPage();+ let page = await browser.newPage();// Set up download handlingconst downloadPath = path.join(__dirname, 'downloads');@@ -276,6 +276,7 @@ async function testExportFunctionality() {const auth = new AuthHelper(page);log('🔐 Authenticating...', 'info');await auth.ensureAuthenticated();+ page = auth.page;log('✅ Authenticated', 'success');await configureExportSettings(page);await createResearchAndWait(page);diff --git a/tests/ui_tests/test_history_page.js b/tests/ui_tests/test_history_page.jsindex cebcbc9941..b2c0f6f2d9 100644--- a/tests/ui_tests/test_history_page.js+++ b/tests/ui_tests/test_history_page.js@@ -104,7 +104,7 @@ async function createResearch(page, query, waitForCompletion = false) {async function testHistoryPage() {const browser = await puppeteer.launch(getPuppeteerLaunchOptions());- const page = await browser.newPage();+ let page = await browser.newPage();// Set console log handlerpage.on('console', msg => {@@ -122,6 +122,7 @@ async function testHistoryPage() {log('📝 Registering new user...', 'info');await authHelper.register(testUsername, testPassword);+ page = authHelper.page;// Verify we're logged inconst isLoggedIn = await authHelper.isLoggedIn();diff --git a/tests/ui_tests/test_register_full_flow.js b/tests/ui_tests/test_register_full_flow.jsindex 6745ddf96d..4c7f2a042e 100644--- a/tests/ui_tests/test_register_full_flow.js+++ b/tests/ui_tests/test_register_full_flow.js@@ -354,7 +354,7 @@ async function testRegisterFullFlow() {await page.goto('about:blank');// Create a fresh page to ensure clean state- const freshPage = await browser.newPage();+ let freshPage = await browser.newPage();// Set timeouts for the fresh pageif (isCI) {@@ -370,6 +370,7 @@ async function testRegisterFullFlow() {// Use AuthHelper which has robust CI-compatible registration logicconst freshAuthHelper = new AuthHelper(freshPage, baseUrl);await freshAuthHelper.register(newUsername, newPassword);+ freshPage = freshAuthHelper.page;console.log('✅ Successful registration completed');testsPassed++;diff --git a/tests/ui_tests/test_research_submit.js b/tests/ui_tests/test_research_submit.jsindex 3764424518..0a8cb0fd04 100644--- a/tests/ui_tests/test_research_submit.js+++ b/tests/ui_tests/test_research_submit.js@@ -29,7 +29,7 @@ const path = require('path');try {browser = await puppeteer.launch(getPuppeteerLaunchOptions());- const page = await browser.newPage();+ let page = await browser.newPage();// Set longer timeout for CIconst timeout = isCI ? 60000 : 30000;@@ -47,6 +47,7 @@ const path = require('path');const auth = new AuthHelper(page);console.log('🔐 Authenticating...');await auth.ensureAuthenticated();+ page = auth.page;console.log('\n🏠 Navigating to home page...');await page.goto('http://127.0.0.1:5000/', { waitUntil: 'domcontentloaded' });