fix(webui): persist markdown video previews
This commit is contained in:
1 parent
57563b671f
commit
a71e6a0ae8
5 files changed
+89
-4
No files matched your search
@@ -15,4 +15,14 @@ describe("MarkdownTextRenderer", () => {
|
||||
);
|
||||
expect(screen.getByText("Diagram")).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders markdown videos as inline players", () => {
|
||||
render(<MarkdownTextRenderer></MarkdownTextRenderer>);
|
||||
|
||||
const video = screen.getByLabelText("Video attachment: nanobot-intro.mp4");
|
||||
expect(video.tagName).toBe("VIDEO");
|
||||
expect(video).toHaveAttribute("src", "/api/media/sig/video");
|
||||
expect(video).toHaveAttribute("controls");
|
||||
expect(screen.queryByRole("img", { name: "nanobot-intro.mp4" })).not.toBeInTheDocument();
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user