test: locate config tag result · openclaw/openclaw@8e068bc
shakkernerd
·
2026-05-12
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -267,8 +267,16 @@ describe("config form renderer", () => {
|
267 | 267 | container, |
268 | 268 | ); |
269 | 269 | |
270 | | -expect(container.textContent).toContain("Gateway"); |
271 | | -expect(container.textContent).toContain("Token"); |
| 270 | +const sectionTitle = expectElement( |
| 271 | +container.querySelector(".config-section-card__title"), |
| 272 | +"tag-filtered section title", |
| 273 | +); |
| 274 | +expect(sectionTitle.textContent?.trim()).toBe("Gateway"); |
| 275 | +const fieldLabel = expectElement( |
| 276 | +container.querySelector(".cfg-field__label"), |
| 277 | +"tag-filtered field label", |
| 278 | +); |
| 279 | +expect(fieldLabel.textContent?.trim()).toBe("Token"); |
272 | 280 | expect(container.textContent).not.toContain("Allow From"); |
273 | 281 | expect(container.textContent).not.toContain("Mode"); |
274 | 282 | }); |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。