test: resolve document media link · openclaw/openclaw@ba23d9a
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1062,7 +1062,7 @@ describe("grouped chat rendering", () => {
|
1062 | 1062 | const documentLink = container.querySelector<HTMLAnchorElement>( |
1063 | 1063 | ".chat-assistant-attachment-card__link", |
1064 | 1064 | ); |
1065 | | -expect(documentLink?.textContent).toContain("user-upload.pdf"); |
| 1065 | +expect(documentLink?.textContent?.trim()).toBe("user-upload.pdf"); |
1066 | 1066 | expect(documentLink?.getAttribute("href")).toBe("/__openclaw__/media/user-upload.pdf"); |
1067 | 1067 | vi.unstubAllGlobals(); |
1068 | 1068 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。