feat(webui): refine attachment galleries and file cards (#6457)
* feat(webui): refine attachment galleries and file cards * fix(webui): align attachment tests and Escape handling
This commit is contained in:
1 parent
44a7ef53ce
commit
eed7b47753
19 files changed
+660
-255
No files matched your search
@@ -294,7 +294,8 @@ describe("MarkdownTextRenderer", () => {
|
||||
it("renders markdown links with file-looking names as file attachments", () => {
|
||||
render(<MarkdownTextRenderer></MarkdownTextRenderer>);
|
||||
|
||||
expect(screen.getByRole("link", { name: "Download index.html" })).toHaveTextContent("index.html");
|
||||
expect(screen.getByRole("link", { name: "Download index.html" })).toHaveAttribute("download", "index.html");
|
||||
expect(screen.getByRole("button", { name: "index.html" })).toBeVisible();
|
||||
expect(screen.queryByRole("img", { name: "index.html" })).not.toBeInTheDocument();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user