mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-11 02:31:38 -10:00
Compare commits
2
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa12000bcf | ||
|
|
4c6ebc865e |
No files matched your search
+3
-1
@@ -132,7 +132,9 @@ debug = false
|
||||
|
||||
[profile.release]
|
||||
codegen-units = 1
|
||||
lto = true
|
||||
# Thin LTO: fat LTO's whole-program link outgrew the 16 GB release runners
|
||||
# (Linux arm64 was killed mid-link from v0.1.39 on).
|
||||
lto = "thin"
|
||||
opt-level = 3
|
||||
# Unwind, so a panic fails one task or command instead of quitting the IDE.
|
||||
panic = "unwind"
|
||||
|
||||
@@ -360,3 +360,30 @@ test("keeps mermaid `<style>` rules scoped to the rendered svg after id rewritin
|
||||
expect(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)");
|
||||
});
|
||||
Reference in new issue
Block a user