update dependancy components & config tests - Issue #1776

This commit is contained in:
Laurent GAY
2025-06-27 12:06:04 +02:00
parent 2306cb12ab
commit 3cdba15b3a
3 changed files with 5295 additions and 3415 deletions

View File

@@ -127,6 +127,7 @@ describe("ParticipationWithoutAccount", () => {
uuid: eventData.uuid,
});
await flushPromises();
expect(wrapper.vm.error).toBe(false);
expect(wrapper.find(".container").isVisible()).toBeTruthy();
expect(wrapper.find(".o-notification--info").text()).toBe(
@@ -138,11 +139,11 @@ describe("ParticipationWithoutAccount", () => {
wrapper.find("form").trigger("submit");
await flushPromises();
expect(wrapper.vm.error).toBe(false);
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
expect.objectContaining(joinEventMock)
);
expect(wrapper.vm.error).toBe(false);
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
query: FETCH_EVENT_BASIC,
@@ -197,6 +198,7 @@ describe("ParticipationWithoutAccount", () => {
});
await flushPromises();
expect(wrapper.vm.error).toBe(false);
// expect(wrapper.vm.$data.event.joinOptions).toBe(
// EventJoinOptions.RESTRICTED
@@ -216,11 +218,11 @@ describe("ParticipationWithoutAccount", () => {
wrapper.find("form").trigger("submit");
await flushPromises();
expect(wrapper.vm.error).toBe(false);
expect(requestHandlers.joinEventMutationHandler).toHaveBeenCalledWith(
expect.objectContaining(joinEventMock)
);
expect(wrapper.vm.error).toBe(false);
const cachedData = mockClient?.cache.readQuery<{ event: IEvent }>({
query: FETCH_EVENT_BASIC,