test: filter config form tag labels · openclaw/openclaw@44de39a
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -250,8 +250,7 @@ describe("config form renderer", () => {
|
250 | 250 | const tags = Array.from(container.querySelectorAll(".cfg-tag")).map((node) => |
251 | 251 | node.textContent?.trim(), |
252 | 252 | ); |
253 | | -expect(tags).toContain("security"); |
254 | | -expect(tags).toContain("secret"); |
| 253 | +expect(tags).toEqual(["security", "secret"]); |
255 | 254 | |
256 | 255 | render( |
257 | 256 | renderConfigForm({ |
@@ -277,8 +276,11 @@ describe("config form renderer", () => {
|
277 | 276 | "tag-filtered field label", |
278 | 277 | ); |
279 | 278 | expect(fieldLabel.textContent?.trim()).toBe("Token"); |
280 | | -expect(container.textContent).not.toContain("Allow From"); |
281 | | -expect(container.textContent).not.toContain("Mode"); |
| 279 | +expect( |
| 280 | +Array.from(container.querySelectorAll(".cfg-field__label")).map((label) => |
| 281 | +label.textContent?.trim(), |
| 282 | +), |
| 283 | +).toEqual(["Token"]); |
282 | 284 | }); |
283 | 285 | |
284 | 286 | it("supports SecretInput unions in additionalProperties maps", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。