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: make logout test helper submit form directly instead of clicking link

LearningCircuitf5d9c3a62ced
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.js
index dfaa69adae..f1651d6057 100644
--- a/tests/ui_tests/auth_helper.js
+++ b/tests/ui_tests/auth_helper.js
@@ -258,10 +258,10 @@ class AuthHelper {
console.log('🚪 Logging out...');
try {
- // Look for logout link/button
- const logoutLink = await this.page.$('a.logout-btn');
- if (logoutLink) {
- console.log(' Found logout link, clicking...');
+ // Try to find and submit the logout form directly (more reliable than clicking link)
+ const logoutForm = await this.page.$('#logout-form');
+ if (logoutForm) {
+ console.log(' Found logout form, submitting directly...');
await Promise.all([
this.page.waitForNavigation({
waitUntil: 'networkidle2',
@@ -269,13 +269,15 @@ class AuthHelper {
}).catch(err => {
console.log(' Navigation wait timed out, checking URL...');
}),
- this.page.click('a.logout-btn')
+ this.page.evaluate(() => {
+ document.getElementById('logout-form').submit();
+ })
]);
} else {
- // Try to find and submit the logout form
- const logoutForm = await this.page.$('#logout-form');
- if (logoutForm) {
- console.log(' Found logout form, submitting...');
+ // Fallback: look for logout link/button and click it
+ const logoutLink = await this.page.$('a.logout-btn');
+ if (logoutLink) {
+ console.log(' Found logout link, clicking...');
await Promise.all([
this.page.waitForNavigation({
waitUntil: 'networkidle2',
@@ -283,13 +285,11 @@ class AuthHelper {
}).catch(err => {
console.log(' Navigation wait timed out, checking URL...');
}),
- this.page.evaluate(() => {
- document.getElementById('logout-form').submit();
- })
+ this.page.click('a.logout-btn')
]);
} else {
- // Fallback: navigate directly to logout URL
- console.log(' No logout button/form found, navigating directly to /auth/logout...');
+ // Last resort: navigate directly to logout URL
+ console.log(' No logout form/button found, navigating directly to /auth/logout...');
await this.page.goto(`${this.page.url().split('/').slice(0, 3).join('/')}/auth/logout`, {
waitUntil: 'networkidle2',
timeout: 10000