diff --git a/ui/src/ui/config-form.browser.test.ts b/ui/src/ui/config-form.browser.test.ts index 6c1afeed220..2cfd5dbd253 100644 --- a/ui/src/ui/config-form.browser.test.ts +++ b/ui/src/ui/config-form.browser.test.ts @@ -267,8 +267,16 @@ describe("config form renderer", () => { container, ); - expect(container.textContent).toContain("Gateway"); - expect(container.textContent).toContain("Token"); + const sectionTitle = expectElement( + container.querySelector(".config-section-card__title"), + "tag-filtered section title", + ); + expect(sectionTitle.textContent?.trim()).toBe("Gateway"); + const fieldLabel = expectElement( + container.querySelector(".cfg-field__label"), + "tag-filtered field label", + ); + expect(fieldLabel.textContent?.trim()).toBe("Token"); expect(container.textContent).not.toContain("Allow From"); expect(container.textContent).not.toContain("Mode"); });