diff --git a/clients/web/src/components/groups/SchemaForm/SchemaForm.test.tsx b/clients/web/src/components/groups/SchemaForm/SchemaForm.test.tsx index 908bc33d..9e573a9c 100644 --- a/clients/web/src/components/groups/SchemaForm/SchemaForm.test.tsx +++ b/clients/web/src/components/groups/SchemaForm/SchemaForm.test.tsx @@ -1602,9 +1602,9 @@ describe("JSON editor escaping (#1853, #1856, #1885)", () => { }, required: ["a"], }; - renderWithMantine( - , - ); + // No seeded value: the `null` has to come from the schema's `default`, + // which is where the reporter's did. + renderWithMantine(); const b = screen.getByLabelText(/^B$/) as HTMLInputElement; expect(b.tagName).toBe("INPUT"); @@ -1632,9 +1632,9 @@ describe("JSON editor escaping (#1853, #1856, #1885)", () => { }, }, }; - renderWithMantine( - , - ); + // Again unseeded, so the editor's opening `null` is the schema default + // being resolved — the state the reporter's recording starts from. + renderWithMantine(); const jsonInput = screen.getByLabelText(/Cfg/) as HTMLTextAreaElement; expect(jsonInput.value).toBe("null");