diff --git a/client/src/core/client/stream/test/comments/stream/moderation.spec.tsx b/client/src/core/client/stream/test/comments/stream/moderation.spec.tsx index 7da98ed536..482bc8d5df 100644 --- a/client/src/core/client/stream/test/comments/stream/moderation.spec.tsx +++ b/client/src/core/client/stream/test/comments/stream/moderation.spec.tsx @@ -647,7 +647,7 @@ it("can copy comment embed code", async () => { window.prompt = jsdomPrompt; }); -it("requires rection reason when dsaFeaturesEnabled", async () => { +it("requires rejection reason when dsaFeaturesEnabled", async () => { await act(async () => { await createTestRenderer({ resolvers: createResolversStub({ @@ -659,6 +659,7 @@ it("requires rection reason when dsaFeaturesEnabled", async () => { reason: { code: "OTHER", detailedExplanation: "really weird comment tbh", + customReason: "custom reason", }, }); return { @@ -719,6 +720,17 @@ it("requires rection reason when dsaFeaturesEnabled", async () => { }); }); + expect(submitReasonButton).toBeDisabled(); + + const customReason = + within(reasonModal).getByPlaceholderText("Add your reason"); + + act(() => { + fireEvent.change(customReason, { + target: { value: "custom reason" }, + }); + }); + expect(submitReasonButton).toBeEnabled(); act(() => {