~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.
Python academiaanthropicarxivbravedeep-researchencryptionhome-automationhomeserverlocallocal-deep-researchlocal-llmmistralollamaopenaipubmedresearchresearch-toolretrieval-augmented-generationsearxngself-hosted
test(ui-tests): assert /auth/change-password form directly, fail not skip (dead-field audit) (#4662)
LearningCircuit2e07fa7ebc59
diff --git a/tests/ui_tests/test_auth_comprehensive_ci.js b/tests/ui_tests/test_auth_comprehensive_ci.jsindex 3049e89d6c..fb092980ee 100644--- a/tests/ui_tests/test_auth_comprehensive_ci.js+++ b/tests/ui_tests/test_auth_comprehensive_ci.js@@ -621,46 +621,36 @@ const SessionTests = {// ============================================================================const PasswordChangeTests = {async passwordChangeFormExists(page, baseUrl) {- // Navigate to password change page (various possible locations)- const possibleUrls = [- `${baseUrl}/auth/change-password`,- `${baseUrl}/auth/change_password`,- `${baseUrl}/settings/password`,- `${baseUrl}/profile/password`- ];-- let found = false;- let formDetails = null;-- for (const url of possibleUrls) {- await navigateTo(page, url);-- const result = await page.evaluate(() => {- const currentPassword = document.querySelector('input[name="current_password"], input[name="old_password"]');- const newPassword = document.querySelector('input[name="new_password"], input[name="password"]');- const confirmPassword = document.querySelector('input[name="confirm_password"], input[name="confirm"]');-- return {- hasCurrentPassword: !!currentPassword,- hasNewPassword: !!newPassword,- hasConfirmPassword: !!confirmPassword- };- });-- if (result.hasCurrentPassword && result.hasNewPassword) {- found = true;- formDetails = result;- break;- }- }+ // The change-password form is served at /auth/change-password (auth/routes.py)+ // and renders auth/change_password.html with current_password / new_password /+ // confirm_password fields (all type=password) and a submit button. The old test+ // guessed 4 possible URLs and SKIPPED if none matched — so a moved/renamed route+ // would silently pass-as-skip. Target the real route directly and assert the+ // form's fields, failing (not skipping) if absent.+ await navigateTo(page, `${baseUrl}/auth/change-password`);- if (!found) {- return { passed: null, skipped: true, message: 'Password change form not found at expected URLs' };- }+ const result = await page.evaluate(() => {+ const current = document.querySelector('#current_password, input[name="current_password"]');+ const next = document.querySelector('#new_password, input[name="new_password"]');+ const confirm = document.querySelector('#confirm_password, input[name="confirm_password"]');+ const submit = document.querySelector('form button[type="submit"], form input[type="submit"]');+ const isPw = (el) => !!el && el.type === 'password';+ return {+ hasForm: !!(current && current.closest('form')),+ hasCurrent: isPw(current),+ hasNew: isPw(next),+ hasConfirm: isPw(confirm),+ hasSubmit: !!submit,+ };+ });+ const passed = result.hasForm && result.hasCurrent && result.hasNew+ && result.hasConfirm && result.hasSubmit;return {- passed: true,- message: `Password change form found (current=${formDetails.hasCurrentPassword}, new=${formDetails.hasNewPassword}, confirm=${formDetails.hasConfirmPassword})`+ passed,+ message: passed+ ? 'Change-password form present at /auth/change-password (current + new + confirm password fields + submit)'+ : `Change-password form incomplete (form=${result.hasForm}, current=${result.hasCurrent}, new=${result.hasNew}, confirm=${result.hasConfirm}, submit=${result.hasSubmit})`};}};