test: frame markdown sidebar slots · openclaw/openclaw@166361c
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -543,8 +543,13 @@ describe("renderMarkdownSidebar", () => {
|
543 | 543 | container, |
544 | 544 | ); |
545 | 545 | |
| 546 | +expect(container.querySelector(".sidebar-title")?.textContent?.trim()).toBe("Markdown Preview"); |
| 547 | +expect(container.querySelector(".sidebar-markdown-shell__eyebrow span")?.textContent).toBe( |
| 548 | +"Rendered Markdown", |
| 549 | +); |
546 | 550 | expect(container.querySelector(".sidebar-markdown strong")?.textContent).toBe("world"); |
547 | | -expect(container.textContent).toContain("Rendered Markdown"); |
548 | | -expect(container.textContent).toContain("View Raw Text"); |
| 551 | +expect( |
| 552 | +Array.from(container.querySelectorAll("button")).map((button) => button.textContent?.trim()), |
| 553 | +).toEqual(["", "View Raw Text"]); |
549 | 554 | }); |
550 | 555 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。