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: Use domcontentloaded for navigation in CI mode

LearningCircuit5d40618d71f3
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.js
index e99353f5d2..4d9c1e9188 100644
--- a/tests/ui_tests/auth_helper.js
+++ b/tests/ui_tests/auth_helper.js
@@ -159,14 +159,23 @@ class AuthHelper {
try {
// Use the same pattern as main branch - Promise.all for atomic operation
+ // In CI, use domcontentloaded for faster response since networkidle2 can timeout
+ const waitUntil = process.env.CI ? 'domcontentloaded' : 'networkidle2';
+ console.log(` Using waitUntil: ${waitUntil} (CI mode: ${!!process.env.CI})`);
+
await Promise.all([
this.page.waitForNavigation({
- waitUntil: 'networkidle2',
+ waitUntil: waitUntil,
timeout: 90000 // Increased from 60s for CI
}),
this.page.click('button[type="submit"]')
]);
console.log(' Navigation completed');
+
+ // In CI, give the page a moment to stabilize after navigation
+ if (process.env.CI) {
+ await new Promise(resolve => setTimeout(resolve, 1000));
+ }
} catch (navError) {
console.log(` Navigation error: ${navError.message}`);
console.log(` Current URL after error: ${this.page.url()}`);
diff --git a/tests/ui_tests/puppeteer_config.js b/tests/ui_tests/puppeteer_config.js
index 6bbb1743be..9b8500d596 100644
--- a/tests/ui_tests/puppeteer_config.js
+++ b/tests/ui_tests/puppeteer_config.js
@@ -5,7 +5,7 @@
function getPuppeteerLaunchOptions(additionalOptions = {}) {
const defaultOptions = {
headless: true,
- protocolTimeout: 180000, // Increase protocol timeout to 3 minutes
+ protocolTimeout: 300000, // Increase protocol timeout to 5 minutes for CI
args: [
'--no-sandbox',
'--disable-setuid-sandbox',