mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-18 19:44:44 +00:00
test: locate config tag result
This commit is contained in:
@@ -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");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user