The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.
TypeScript code-editorcross-platformdapdatabase-clientdebuggerdesktop-appdeveloper-toolsgithttp-clientideintellijlsprusttauriterminal
test(markdown): cover Mermaid flowchart nodes and sequence control blocks against solid black (#2363)
LU XIANGRUI7090a8db564a
diff --git a/e2e/agentMarkdown.spec.ts b/e2e/agentMarkdown.spec.tsindex 9d7a1a13d..112260457 100644--- a/e2e/agentMarkdown.spec.ts+++ b/e2e/agentMarkdown.spec.ts@@ -360,3 +360,30 @@ test("keeps mermaid `<style>` rules scoped to the rendered svg after id rewritinexpect(await css(reply, ".cluster rect", "fill")).not.toBe("rgb(0, 0, 0)");expect(await css(reply, ".flowchart-link", "fill")).toBe("none");});++test("keeps mermaid flowchart nodes and sequence control blocks off solid black", async ({ page }) => {+ const flow = [+ "```mermaid",+ "flowchart LR",+ ' subgraph Client["Client"]',+ ' A["Local agent"]',+ ' B["Voice input"]',+ " end",+ ' subgraph Cloud["Cloud"]',+ ' C["Cloud agent"]',+ ' D["Memory service"]',+ " end",+ " B --> A",+ " A --> C",+ " C --> D",+ "```",+ ].join("\n");+ const sequence = ["```mermaid", "sequenceDiagram", " loop every minute", " A->>B: ping", " end", "```"].join(+ "\n",+ );+ const reply = await openReply(page, `Flow:\n\n${flow}\n\nSequence:\n\n${sequence}`);+ await expect(reply.locator("[data-mermaid-state='ok'] .mermaid-output svg")).toHaveCount(2);+ expect(await css(reply, ".node rect", "fill")).not.toBe("rgb(0, 0, 0)");+ expect(await css(reply, ".cluster rect", "fill")).not.toBe("rgb(0, 0, 0)");+ expect(await css(reply, ".labelBox", "fill")).not.toBe("rgb(0, 0, 0)");+});