Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

test(desktop-app): l3 assert deep-link preview src

Diego Zacarias333a5f2676ca
diff --git a/desktop-app/ui/src/pages/__tests__/SandboxUiPage.test.tsx b/desktop-app/ui/src/pages/__tests__/SandboxUiPage.test.tsx
index f424cadcf..59aaad3da 100644
--- a/desktop-app/ui/src/pages/__tests__/SandboxUiPage.test.tsx
+++ b/desktop-app/ui/src/pages/__tests__/SandboxUiPage.test.tsx
@@ -883,6 +883,11 @@ describe('SandboxUiPage', () => {
// ->false flicker inside this phase; assert the exact call list (scoped by
// the mockClear above) so any transient setVisible(true) fails the test.
await waitFor(() => expect(screen.getByTestId('sandbox-ui-embed-preview')).toBeTruthy())
+ // The placeholder shown while the native view is hidden is the captured
+ // preview data URL; assert it so the fixture literal is load-bearing.
+ expect(screen.getByTestId('sandbox-ui-embed-preview').getAttribute('src')).toBe(
+ 'data:image/png;base64,deeplink'
+ )
expect(sandboxUi.setVisible.mock.calls).toEqual([[false]])
sandboxUi.setVisible.mockClear()