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: Refresh login page to get fresh CSRF token after logout (#1507)

LearningCircuitc76e628ccdb2
diff --git a/.github/workflows/responsive-ui-tests-enhanced.yml b/.github/workflows/responsive-ui-tests-enhanced.yml
index cd15e4c0e8..b0c6f225d3 100644
--- a/.github/workflows/responsive-ui-tests-enhanced.yml
+++ b/.github/workflows/responsive-ui-tests-enhanced.yml
@@ -58,6 +58,15 @@ jobs:
cache: 'npm'
cache-dependency-path: tests/ui_tests/package-lock.json
+ - name: Free up disk space
+ run: |
+ # Remove unnecessary large packages to prevent disk space issues during cache save
+ sudo rm -rf /usr/share/dotnet
+ sudo rm -rf /usr/local/lib/android
+ sudo rm -rf /opt/ghc
+ sudo rm -rf /opt/hostedtoolcache/CodeQL
+ df -h
+
- name: Install system dependencies
run: |
sudo apt-get update
diff --git a/tests/ui_tests/auth_helper.js b/tests/ui_tests/auth_helper.js
index 42598eb5ec..9fa53ac88f 100644
--- a/tests/ui_tests/auth_helper.js
+++ b/tests/ui_tests/auth_helper.js
@@ -201,12 +201,11 @@ class AuthHelper {
return true;
}
- // Navigate to login page only if not already there
+ // Always navigate to login page to ensure fresh CSRF token
+ // (After logout, the page may have a stale token from the previous session)
const currentUrl = this.page.url();
console.log(` Current URL: ${currentUrl}`);
- if (!currentUrl.includes(AUTH_CONFIG.paths.login)) {
- await this._navigateToAuthPage(AUTH_CONFIG.paths.login, AUTH_CONFIG.paths.login);
- }
+ await this._navigateToAuthPage(AUTH_CONFIG.paths.login, AUTH_CONFIG.paths.login);
// Wait for login form
console.log(' Waiting for login form...');