test: locate config tag result

This commit is contained in:
Shakker
2026-05-12 15:26:53 +01:00
parent 684e13c7fd
commit 8e068bc72c

View File

@@ -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");
});