mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-09-04 02:01:48 +03:00
fix(webui): refine inline token highlights (#5241)
This commit is contained in:
@@ -23,6 +23,9 @@ describe("MarkdownTextRenderer", () => {
|
||||
const link = screen.getByRole("link", { name: "收费设计" });
|
||||
expect(link).toHaveAttribute("href", "#/chat/websocket%3Apricing");
|
||||
expect(link).not.toHaveAttribute("target");
|
||||
expect(link.getAttribute("style")).toContain(
|
||||
"text-decoration-color: var(--inline-token-highlight)",
|
||||
);
|
||||
});
|
||||
|
||||
it("does not link non-WebUI session references", () => {
|
||||
|
||||
Reference in New Issue
Block a user