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: correct API endpoint URLs and navigation handling in Puppeteer E2E tests (#2221)

LearningCircuit1e5651a20396
diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.js
index 331210cfce..a82d1e9587 100644
--- a/tests/puppeteer/test_deep_functionality.js
+++ b/tests/puppeteer/test_deep_functionality.js
@@ -667,7 +667,7 @@ describe('Deep Functionality Tests', function() {
// Start research via API (CSRF-exempt under /research/api/, session cookie auto-sent)
const startResult = await page.evaluate(async (baseUrl) => {
try {
- const res = await fetch(`${baseUrl}/research/api/start_research`, {
+ const res = await fetch(`${baseUrl}/research/api/start`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
diff --git a/tests/puppeteer/test_ssrf_protection.js b/tests/puppeteer/test_ssrf_protection.js
index fb0951827a..bb2564e1c0 100644
--- a/tests/puppeteer/test_ssrf_protection.js
+++ b/tests/puppeteer/test_ssrf_protection.js
@@ -236,7 +236,7 @@ describe('SSRF Protection - Functionality Tests', function() {
console.log('\n--- Test: API endpoints ---');
const endpoints = [
- '/api/settings',
+ '/settings/api',
'/api/history',
];
diff --git a/tests/puppeteer/test_ui_functionality.js b/tests/puppeteer/test_ui_functionality.js
index 959e20910f..b983a39051 100644
--- a/tests/puppeteer/test_ui_functionality.js
+++ b/tests/puppeteer/test_ui_functionality.js
@@ -145,11 +145,10 @@ describe('UI Functionality Tests', function() {
console.log(` Query before submit: "${query}"`);
if (query && query.length > 0) {
- // Submit the form
+ // Submit the form - may trigger navigation to progress page
+ const navigationPromise = page.waitForNavigation({ waitUntil: 'domcontentloaded', timeout: 10000 }).catch(() => null);
await page.click('#start-research-btn');
-
- // Wait a short time for any response
- await delay(2000);
+ await navigationPromise;
await takeScreenshot(page, 'after-research-submit');