fix(desktop): quiet gate for workspace switches instead of boot splash (#1449)

Signed-off-by: Wes <wesbillman@users.noreply.github.com>
Co-authored-by: Brain <21994759fc7a6fa6b965551d35cfd7897d262f2495467f2d78694ddcfa6a5c7e@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
Wes
2026-07-02 08:46:20 -06:00
committed by GitHub
parent 7da936fff8
commit b779a3ee2f
4 changed files with 84 additions and 3 deletions

View File

@@ -93,6 +93,9 @@ type E2eConfig = {
channelsReadError?: string;
feedReadError?: string;
canvasReadError?: string;
/** Delay (ms) for `apply_workspace` so e2e tests can observe the
* workspace-switch gate. 0/undefined = instant. */
applyWorkspaceDelayMs?: number;
openDmDelayMs?: number;
sendMessageDelayMs?: number;
usersBatchDelayMs?: number;
@@ -7462,8 +7465,15 @@ export function maybeInstallE2eTauriMocks() {
return importMockIdentity(
(payload as { nsec?: string } | null)?.nsec ?? "",
);
case "apply_workspace":
case "apply_workspace": {
const applyDelayMs = activeConfig?.mock?.applyWorkspaceDelayMs ?? 0;
if (applyDelayMs > 0) {
return new Promise((resolve) =>
window.setTimeout(resolve, applyDelayMs),
);
}
return;
}
case "get_profile":
return handleGetProfile(activeConfig);
case "update_profile":