Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

test(settings): note the mid-browse policy-flip precondition in the disallowed-browse pin

Gabriel Stein5f268417896b
diff --git a/test/helpers/policyRules.test.js b/test/helpers/policyRules.test.js
index ef5fbfc16..3928d95a7 100644
--- a/test/helpers/policyRules.test.js
+++ b/test/helpers/policyRules.test.js
@@ -686,7 +686,10 @@ test("a browsed provider resolves for display without leaking the committed mode
null
);
- // A browsed provider that policy has since disallowed falls back.
+ // A browsed provider that policy has since disallowed falls back. The
+ // component can't browse there directly (handleCloudProviderChange guards
+ // providerAllowed); this state is only reachable when policy flips while
+ // the tab is already being browsed.
assert.deepEqual(
reconcileCloudProviderSelection({
selectedProvider: "xai",