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.

chore(test): correct latent unprotected palette entry and document same-value select dependency (#5595)

LearningCircuit72f36e743c9d
diff --git a/tests/ui_tests/test_egress_policy_ui.js b/tests/ui_tests/test_egress_policy_ui.js
index 029a1b6c36..68e73d1c19 100644
--- a/tests/ui_tests/test_egress_policy_ui.js
+++ b/tests/ui_tests/test_egress_policy_ui.js
@@ -41,13 +41,17 @@ const SCREENSHOT_DIR = path.join(
// but the CSS rule is silently broken. BOTH intentionally has no
// accent (default = no cue, the warning banner does the nagging) so
// the test for that scope checks "no color set" rather than a hue.
+// UNPROTECTED also has no *card* accent — its red cue lives on
+// .ldr-privacy-panel[data-scope="unprotected"], not the research card —
+// so a border colour here would make selectScope('unprotected') wait
+// for a hue the card never gets.
const SCOPE_PALETTE = {
adaptive: { border: null, name: 'no-accent' },
both: { border: null, name: 'no-accent' },
public_only: { border: 'rgb(59, 130, 246)', name: 'blue-500' },
private_only: { border: 'rgb(20, 163, 127)', name: 'teal-600' },
strict: { border: 'rgb(139, 92, 246)', name: 'violet-500' },
- unprotected: { border: 'rgb(224, 82, 82)', name: 'red-caution' },
+ unprotected: { border: null, name: 'no-accent' },
};
// Tally of pass / fail per assertion so the final report is informative.
@@ -114,6 +118,12 @@ function waitForSettingPut(page, settingKey) {
async function selectScope(page, value) {
// Register waiters before the select — waitForResponse only sees
// responses that arrive after attachment.
+ //
+ // Re-selecting the already-active value works only because
+ // Puppeteer's select() dispatches `change` unconditionally and the
+ // app's handler saves on every `change` (no old==new skip). If
+ // either ever grows a no-op guard, same-value calls will stop
+ // producing a PUT and scopeSaved will time out.
const scopeSaved = waitForSettingPut(page, 'policy.egress_scope');
const expectedBorder = SCOPE_PALETTE[value].border;
const visualReady = page.waitForFunction(