mirror of
https://github.com/block/buzz.git
synced 2026-11-12 04:12:21 +00:00
feat(composer): compose spoiler, annotation, and tooltip controls (#1491)
Signed-off-by: Taylor Ho <taylorkmho@gmail.com> Co-authored-by: npub1223z34hd7vtwc6qj4s7flsxkj644nlre2nthu7lrrmkumhu3xddsrx9r6w <52a228d6edf316ec6812ac3c9fc0d696ab59fc7954d77e7be31eedcddf91335b@sprout-oss.stage.blox.sqprod.co>
This commit is contained in:
@@ -8602,6 +8602,13 @@ export function maybeInstallE2eTauriMocks() {
|
||||
return await resolveMockUploadDescriptors(activeConfig);
|
||||
case "upload_media_bytes":
|
||||
return (await resolveMockUploadDescriptors(activeConfig))[0];
|
||||
case "fetch_media_bytes": {
|
||||
// The real command fetches relay media through Rust reqwest. In E2E
|
||||
// the browser fetch suffices — specs serve the URL via page.route.
|
||||
const response = await fetch((payload as { url: string }).url);
|
||||
if (!response.ok) throw new Error(`fetch failed: ${response.status}`);
|
||||
return Array.from(new Uint8Array(await response.arrayBuffer()));
|
||||
}
|
||||
case "download_image":
|
||||
case "download_file":
|
||||
// The save dialog can't run headlessly; report a successful save so the
|
||||
|
||||
Reference in New Issue
Block a user