Add tests for participation without account

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2020-12-07 14:48:48 +01:00
parent c0a367a014
commit d35ccff5a1
9 changed files with 562 additions and 22 deletions

View File

@@ -102,7 +102,9 @@ describe("CommentTree", () => {
await wrapper.vm.$nextTick(); // because of the <transition>
expect(wrapper.exists()).toBe(true);
expect(requestHandlers.eventCommentThreadsQueryHandler).toHaveBeenCalled();
expect(
requestHandlers.eventCommentThreadsQueryHandler
).toHaveBeenCalledWith({ eventUUID: eventData.uuid });
expect(wrapper.vm.$apollo.queries.comments).toBeTruthy();
expect(wrapper.find(".loading").exists()).toBe(false);
expect(wrapper.findAll(".comment-list .root-comment").length).toBe(2);