test(FN-4413): complete Step 2 — add global general helper markup regression

Fusion-Task-Id: FN-4413
Fusion-Task-Lineage: 8f3a455e-d96e-49cf-9745-330dbd319784
This commit is contained in:
Fusion
2026-05-13 22:04:19 -07:00
committed by gsxdsm
parent 19bec1d1a1
commit 48eb88ec4f

View File

@@ -660,6 +660,19 @@ describe("SettingsModal", () => {
}
});
it("renders helper descriptions as small text for global logging fields", async () => {
renderModal({ initialSection: "global-general" });
await waitForSettingsModalReady();
expect(document.querySelector(".settings-field-help")).toBeNull();
const toolOutputHelper = screen.getByText(/When disabled, tool rows are still logged but detailed tool payloads are omitted/i);
expect(toolOutputHelper.closest("small")).toBeTruthy();
const thinkingHelper = screen.getByText(/Leave both thinking toggles off to keep the original default behavior/i);
expect(thinkingHelper.closest("small")).toBeTruthy();
});
it("renders global default tracking repo control", async () => {
renderModal({ initialSection: "global-general" });
await waitForSettingsModalReady();