~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: Handle slow login redirects more gracefully
LearningCircuit9939ad09a77b
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.jsindex b2e1776bfd..bed3f61ac2 100644--- a/tests/ui_tests/auth_helper.js+++ b/tests/ui_tests/auth_helper.js@@ -150,47 +150,25 @@ class AuthHelper {// Listen to page errorsthis.page.on('pageerror', error => console.log(' Page error:', error.message));- // Listen to response events to track redirects+ // Listen to response eventsthis.page.on('response', response => {if (response.url().includes('/auth/login') && response.request().method() === 'POST') {console.log(` Login POST response: ${response.status()} ${response.statusText()}`);-- // Check for Location header in redirect- const headers = response.headers();- if (headers['location']) {- console.log(` Redirect location: ${headers['location']}`);- }}});- // Track the initial URL- const initialUrl = this.page.url();- console.log(` Initial URL before submit: ${initialUrl}`);-try {- // Click submit and wait for either navigation or timeout+ // Click and handle potential redirectconst navigationPromise = this.page.waitForNavigation({- waitUntil: 'domcontentloaded',- timeout: 90000+ waitUntil: 'domcontentloaded', // Use domcontentloaded instead of networkidle2 for faster response+ timeout: 90000 // 90 second timeout for slow database creation in CI});await this.page.click('button[type="submit"]');- console.log(' Submit button clicked');-- // Check URL periodically during navigation wait- const checkInterval = setInterval(() => {- const currentUrl = this.page.url();- if (currentUrl !== initialUrl) {- console.log(` URL changed to: ${currentUrl}`);- clearInterval(checkInterval);- }- }, 5000); // Check every 5 seconds+ // Wait for navigation with better error handlingawait navigationPromise;- clearInterval(checkInterval);-console.log(' Navigation completed');- console.log(` Final URL: ${this.page.url()}`);// Give the page a moment to settle after navigationawait new Promise(resolve => setTimeout(resolve, 1000));@@ -198,11 +176,6 @@ class AuthHelper {console.log(` Navigation error: ${navError.message}`);console.log(` Current URL after error: ${this.page.url()}`);- // Check if we actually did navigate despite the error- if (this.page.url() !== initialUrl) {- console.log(' Note: URL did change even though navigation timed out');- }-// Check page content on errorconst pageTitle = await this.page.title();console.log(` Page title: ${pageTitle}`);@@ -219,13 +192,6 @@ class AuthHelper {const finalUrl = this.page.url();console.log(` Final URL: ${finalUrl}`);- // Also check for session cookies as an indicator of successful login- const cookies = await this.page.cookies();- const sessionCookie = cookies.find(c => c.name === 'session');- if (sessionCookie) {- console.log(' Session cookie found - login likely successful');- }-if (finalUrl.includes('/auth/login')) {// Still on login page - check for errorconst error = await this.page.$('.alert-danger, .error-message, .alert');