test: verify platform media checks · openclaw/openclaw@52a9587
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -1548,7 +1548,12 @@ describe("grouped chat rendering", () => {
|
1548 | 1548 | expect(fetchUrl).toBe(expectedUrl); |
1549 | 1549 | expectSameOriginGet(fetchInit); |
1550 | 1550 | } |
1551 | | -expect(container.textContent).not.toContain("Outside allowed folders"); |
| 1551 | +expect( |
| 1552 | +Array.from(container.querySelectorAll(".chat-assistant-attachment-badge")).map((badge) => |
| 1553 | +badge.textContent?.trim(), |
| 1554 | +), |
| 1555 | +).toEqual(["Checking..."]); |
| 1556 | +expect(container.querySelector(".chat-assistant-attachment-card__reason")).toBeNull(); |
1552 | 1557 | vi.unstubAllGlobals(); |
1553 | 1558 | }); |
1554 | 1559 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。