feat(webui): polish tabbed previews and image presentation
This commit is contained in:
1 parent
fccf415283
commit
b555164a17
41 files changed
+1459
-621
No files matched your search
@@ -265,10 +265,7 @@ describe("MarkdownTextRenderer", () => {
|
||||
|
||||
const image = screen.getByRole("img", { name: "Diagram" });
|
||||
expect(image).toHaveAttribute("src", "/api/media/sig/payload");
|
||||
expect(screen.getByRole("link", { name: "Open Diagram" })).toHaveAttribute(
|
||||
"href",
|
||||
"/api/media/sig/payload",
|
||||
);
|
||||
expect(screen.getByRole("button", { name: "View image: Diagram" })).toBeInTheDocument();
|
||||
});
|
||||
|
||||
it("renders markdown videos as inline players", () => {
|
||||
@@ -378,10 +375,7 @@ describe("MarkdownTextRenderer", () => {
|
||||
"src",
|
||||
"/api/media/sig/payload",
|
||||
);
|
||||
expect(screen.getByRole("link", { name: "Open Diagram" })).toHaveAttribute(
|
||||
"href",
|
||||
"/api/media/sig/payload",
|
||||
);
|
||||
expect(screen.getByRole("button", { name: "View image: Diagram" })).toBeInTheDocument();
|
||||
expect(screen.queryByRole("button", { name: "Code" })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user