mirror of
https://github.com/block/buzz.git
synced 2026-11-04 00:12:02 +00:00
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:
@@ -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":
|
||||
|
||||
Reference in New Issue
Block a user