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: E2E password validation alignment & missing CSRF token (#2674)

LearningCircuit7e9f208bf5e1
diff --git a/tests/puppeteer/test_deep_functionality.js b/tests/puppeteer/test_deep_functionality.js
index 3da27338d6..02166c855e 100644
--- a/tests/puppeteer/test_deep_functionality.js
+++ b/tests/puppeteer/test_deep_functionality.js
@@ -22,7 +22,8 @@ const {
takeScreenshot,
ensureLoggedIn,
getLaunchOptions,
- generateTestRunId
+ generateTestRunId,
+ getCSRFToken
} = require('./helpers');
// Generate unique username for this test run - ensures fresh state each time
@@ -664,10 +665,10 @@ describe('Deep Functionality Tests', function() {
// Navigate to home page to have a valid page context
await page.goto(`${BASE_URL}/`, { waitUntil: 'domcontentloaded' });
- // Get CSRF token from meta tag
- const csrfToken = await page.$eval('meta[name="csrf-token"]', el => el.content).catch(() => '');
+ // Extract CSRF token for the POST request
+ const csrfToken = await getCSRFToken(page);
- // Start research via API (requires CSRF token)
+ // Start research via API (requires CSRF token, session cookie auto-sent)
const startResult = await page.evaluate(async (baseUrl, csrf) => {
try {
const res = await fetch(`${baseUrl}/research/api/start`, {