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: Increase Puppeteer protocol timeout and improve navigation handling

LearningCircuit57954dea1b78
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.js
index 89195cc6fd..bed3f61ac2 100644
--- a/tests/ui_tests/auth_helper.js
+++ b/tests/ui_tests/auth_helper.js
@@ -158,11 +158,20 @@ class AuthHelper {
});
try {
- await Promise.all([
- this.page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 60000 }), // 60 second timeout for slow database creation
- this.page.click('button[type="submit"]')
- ]);
+ // Click and handle potential redirect
+ const navigationPromise = this.page.waitForNavigation({
+ 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"]');
+
+ // Wait for navigation with better error handling
+ await navigationPromise;
console.log(' Navigation completed');
+
+ // Give the page a moment to settle after navigation
+ await new Promise(resolve => setTimeout(resolve, 1000));
} catch (navError) {
console.log(` Navigation error: ${navError.message}`);
console.log(` Current URL after error: ${this.page.url()}`);
@@ -234,10 +243,13 @@ class AuthHelper {
}
// Submit form
- await Promise.all([
- this.page.waitForNavigation({ waitUntil: 'networkidle2', timeout: 90000 }), // 90 second timeout for slow database creation in CI
- this.page.click('button[type="submit"]')
- ]);
+ const navigationPromise = this.page.waitForNavigation({
+ waitUntil: 'domcontentloaded', // Use domcontentloaded for faster response
+ timeout: 90000 // 90 second timeout for slow database creation in CI
+ });
+
+ await this.page.click('button[type="submit"]');
+ await navigationPromise;
// Check if registration was successful
const currentUrl = this.page.url();
diff --git a/tests/ui_tests/puppeteer_config.js b/tests/ui_tests/puppeteer_config.js
index b0fd9206f8..6bbb1743be 100644
--- a/tests/ui_tests/puppeteer_config.js
+++ b/tests/ui_tests/puppeteer_config.js
@@ -5,6 +5,7 @@
function getPuppeteerLaunchOptions(additionalOptions = {}) {
const defaultOptions = {
headless: true,
+ protocolTimeout: 180000, // Increase protocol timeout to 3 minutes
args: [
'--no-sandbox',
'--disable-setuid-sandbox',