diff --git a/frontend/app/view/preview/preview-streaming.test.tsx b/frontend/app/view/preview/preview-streaming.test.tsx
new file mode 100644
index 0000000000..8faeed4364
--- /dev/null
+++ b/frontend/app/view/preview/preview-streaming.test.tsx
@@ -0,0 +1,40 @@
+// Copyright 2026, Command Line Inc.
+// SPDX-License-Identifier: Apache-2.0
+
+import { Provider, atom } from "jotai";
+import { renderToStaticMarkup } from "react-dom/server";
+import { describe, expect, it, vi } from "vitest";
+import { StreamingPreview } from "./preview-streaming";
+
+vi.mock("@/util/endpoints", () => ({
+ getWebServerEndpoint: () => "http://wave.test",
+}));
+
+vi.mock("@/util/waveutil", () => ({
+ formatRemoteUri: (path: string, conn: string) => `wsh://${conn}${path}`,
+}));
+
+describe("StreamingPreview", () => {
+ it("renders PDFs with an object/embed viewer instead of an iframe", () => {
+ const model = {
+ refreshCallback: null,
+ refreshVersion: atom(0),
+ connection: atom("local"),
+ statFile: atom({
+ path: "/docs/guide.pdf",
+ mimetype: "application/pdf",
+ }),
+ };
+
+ const markup = renderToStaticMarkup(
+
+
+
+ );
+
+ expect(markup).toContain("