fix: avoid preview-only pairing approval hint (#69226) · openclaw/openclaw@aff96ea
obviyus
·
2026-04-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -108,4 +108,19 @@ describe("overview view rendering", () => {
|
108 | 108 | ); |
109 | 109 | expect(container.textContent).toContain("openclaw devices approve req-123"); |
110 | 110 | }); |
| 111 | + |
| 112 | +it("does not suggest preview-only latest approval when the request id is absent", async () => { |
| 113 | +const container = document.createElement("div"); |
| 114 | +const props = createOverviewProps({ |
| 115 | +lastError: "scope upgrade pending approval", |
| 116 | +lastErrorCode: "PAIRING_REQUIRED", |
| 117 | +}); |
| 118 | + |
| 119 | +render(renderOverview(props), container); |
| 120 | +await Promise.resolve(); |
| 121 | + |
| 122 | +expect(container.textContent).toContain("Scope upgrade pending approval."); |
| 123 | +expect(container.textContent).toContain("openclaw devices list"); |
| 124 | +expect(container.textContent).not.toContain("openclaw devices approve --latest"); |
| 125 | +}); |
111 | 126 | }); |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。