diff --git a/src/core/client/stream/components/ReplyList.spec.tsx b/src/core/client/stream/components/ReplyList.spec.tsx index 093d96049..76750c8a0 100644 --- a/src/core/client/stream/components/ReplyList.spec.tsx +++ b/src/core/client/stream/components/ReplyList.spec.tsx @@ -39,4 +39,11 @@ describe("when there is more", () => { .simulate("click"); expect((props.onShowAll as SinonSpy).calledOnce).toBe(true); }); + + const wrapperDisabledButton = shallow( + + ); + it("disables load more button", () => { + expect(wrapperDisabledButton).toMatchSnapshot(); + }); }); diff --git a/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap b/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap index e48482470..9fbe86dab 100644 --- a/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap +++ b/src/core/client/stream/components/__snapshots__/ReplyList.spec.tsx.snap @@ -28,6 +28,49 @@ exports[`renders correctly 1`] = ` `; +exports[`when there is more disables load more button 1`] = ` + + + + + + + Show All Replies + + + + +`; + exports[`when there is more renders a load more button 1`] = `