test(dashboard): drop redundant field-presence tests in SettingsModal
Each of these tests asserts only that a labeled form field exists in a section. The consolidated "all settings fields are present across all sections" test (line 497) covers the same space, and the accompanying payload-roundtrip tests implicitly require the field to be present before toggling it. Dropped 7 presence-only tests: - Recycle worktrees, Show quick chat button, Auto-completion mode - Include task ID, Auto-resolve conflicts, Add author attribution - Smart conflict resolution, groupOverlappingFiles type=checkbox 4,317 → 4,206 LOC (-111). 197 tests still passing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -870,16 +870,6 @@ describe("SettingsModal", () => {
|
||||
expect(payload.smartConflictResolution).toBe(true);
|
||||
});
|
||||
|
||||
it("groupOverlappingFiles input has type checkbox", async () => {
|
||||
render(<SettingsModal onClose={onClose} addToast={addToast} />);
|
||||
await waitFor(() => expect(fetchSettings).toHaveBeenCalled());
|
||||
|
||||
fireEvent.click(screen.getByText("Scheduling"));
|
||||
const checkbox = screen.getByLabelText("Serialize tasks with overlapping files");
|
||||
expect(checkbox).toBeTruthy();
|
||||
expect(checkbox.getAttribute("type")).toBe("checkbox");
|
||||
});
|
||||
|
||||
it("does not render heartbeat multiplier control in Scheduling section", async () => {
|
||||
render(<SettingsModal onClose={onClose} addToast={addToast} />);
|
||||
await waitFor(() => expect(fetchSettings).toHaveBeenCalled());
|
||||
|
||||
Reference in New Issue
Block a user