correct unittest front-end #1776
This commit is contained in:
@@ -139,9 +139,9 @@ describe("ParticipationWithoutAccount", () => {
|
||||
|
||||
await flushPromises();
|
||||
|
||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith({
|
||||
...joinEventMock,
|
||||
});
|
||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
||||
expect.objectContaining(joinEventMock)
|
||||
);
|
||||
|
||||
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
|
||||
query: FETCH_EVENT_BASIC,
|
||||
@@ -216,9 +216,9 @@ describe("ParticipationWithoutAccount", () => {
|
||||
|
||||
await flushPromises();
|
||||
|
||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith({
|
||||
...joinEventMock,
|
||||
});
|
||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
||||
expect.objectContaining(joinEventMock)
|
||||
);
|
||||
|
||||
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
|
||||
query: FETCH_EVENT_BASIC,
|
||||
@@ -260,9 +260,9 @@ describe("ParticipationWithoutAccount", () => {
|
||||
|
||||
await flushPromises();
|
||||
|
||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith({
|
||||
...joinEventMock,
|
||||
});
|
||||
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
|
||||
expect.objectContaining(joinEventMock)
|
||||
);
|
||||
await flushPromises();
|
||||
expect(wrapper.find("form").exists()).toBeTruthy();
|
||||
expect(wrapper.find(".o-notification--danger").text()).toContain(
|
||||
|
||||
@@ -64,29 +64,3 @@ exports[`ParticipationWithoutAccount > handles being already a participant 1`] =
|
||||
</div>
|
||||
</section>"
|
||||
`;
|
||||
|
||||
exports[`ParticipationWithoutAccount > renders the participation without account view with minimal data 1`] = `
|
||||
"<section class="container mx-auto">
|
||||
<div class="">
|
||||
<div>
|
||||
<h1 class="title">Request for participation confirmation sent</h1>
|
||||
<p class="prose dark:prose-invert"><span>Check your inbox (and your junk mail folder).</span><span class="details">Your participation will be validated once you click the confirmation link into the email.</span></p>
|
||||
<!--v-if-->
|
||||
<p class="prose dark:prose-invert">You may now close this window, or <a href="/events/f37910ea-fd5a-4756-9679-00971f3f4106" class="">return to the event's page</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>"
|
||||
`;
|
||||
|
||||
exports[`ParticipationWithoutAccount > renders the warning if the event participation is restricted 1`] = `
|
||||
"<section class="container mx-auto">
|
||||
<div class="">
|
||||
<div>
|
||||
<h1 class="title">Request for participation confirmation sent</h1>
|
||||
<p class="prose dark:prose-invert"><span>Check your inbox (and your junk mail folder).</span><span class="details">Your participation will be validated once you click the confirmation link into the email, and after the organizer manually validates your participation.</span></p>
|
||||
<!--v-if-->
|
||||
<p class="prose dark:prose-invert">You may now close this window, or <a href="/events/f37910ea-fd5a-4756-9679-00971f3f4106" class="">return to the event's page</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</section>"
|
||||
`;
|
||||
|
||||
Reference in New Issue
Block a user