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.

test(ui): apply AI-review follow-ups to dead-field audit tests (#4725)

LearningCircuit6b9e67cabb35
diff --git a/tests/ui_tests/test_error_handling_ci.js b/tests/ui_tests/test_error_handling_ci.js
index c2fbe3d279..c5649e2bea 100644
--- a/tests/ui_tests/test_error_handling_ci.js
+++ b/tests/ui_tests/test_error_handling_ci.js
@@ -77,7 +77,11 @@ const Error404Tests = {
return !!alert && (alert.textContent || '').trim().length > 0;
}, { timeout: 15000 });
} catch {
- // fall through — handled below by re-reading the DOM state
+ // Targeted alert never appeared within 15s. Don't fail here — the DOM
+ // re-read below makes the final pass/fail decision — but log a hint so a
+ // slow render is distinguishable from "no error element rendered" during
+ // triage.
+ log('invalidResearchIdHandled: timed out waiting for #results-content .alert-danger (slow render?)');
}
const result = await page.evaluate(() => {
diff --git a/tests/ui_tests/test_followup_research_ci.js b/tests/ui_tests/test_followup_research_ci.js
index 5b14f935ca..560f9a0895 100644
--- a/tests/ui_tests/test_followup_research_ci.js
+++ b/tests/ui_tests/test_followup_research_ci.js
@@ -38,8 +38,12 @@ async function navigateToWithRetry(page, url) {
* modal tests run on a no-LLM CI shard with a fresh DB (where no
* completed research exists to link to), instead of skipping the whole
* feature. followup.js derives parentResearchId from this URL path.
+ *
+ * Uses the reserved nil UUID: it is never assigned to a real research record,
+ * so it can't collide with a seeded fixture and silently exercise a different
+ * code path.
*/
-const SYNTHETIC_RESULTS_ID = '00000000-0000-0000-0000-000000000123';
+const SYNTHETIC_RESULTS_ID = '00000000-0000-0000-0000-000000000000';
/**
* Open the follow-up modal on a freshly-loaded results page and wait for
@@ -82,7 +86,8 @@ async function openFollowupModal(page, baseUrl) {
return !!m && getComputedStyle(m).display !== 'none';
}, { timeout: 8000 });
return true;
- } catch {
+ } catch (e) {
+ log(`openFollowupModal: #followUpModal did not become visible within 8s (${e.message})`);
return false;
}
}
diff --git a/tests/ui_tests/test_mobile_interactions_ci.js b/tests/ui_tests/test_mobile_interactions_ci.js
index b0d5e08785..8274710885 100644
--- a/tests/ui_tests/test_mobile_interactions_ci.js
+++ b/tests/ui_tests/test_mobile_interactions_ci.js
@@ -110,7 +110,10 @@ const MobileModalTests = {
return {
containerOverflowY: contentStyle.overflowY,
containerScrolls: contentStyle.overflowY === 'auto' || contentStyle.overflowY === 'scroll',
- bodyVisible: bodyRect.width > 0 && bodyRect.height > 0,
+ // offsetParent !== null rejects a modal body hidden via display:none
+ // on any ancestor (e.g. a backdrop-only / never-shown modal) that a
+ // bare width/height check would still accept.
+ bodyVisible: bodyRect.width > 0 && bodyRect.height > 0 && body.offsetParent !== null,
contentOverflows: content.scrollHeight > content.clientHeight,
contentScrollHeight: content.scrollHeight,
contentClientHeight: content.clientHeight,