Wait for the event and meeting point counts together in the direct sign-up tests

This commit is contained in:
Sylvain Duchesne
2026-11-06 23:30:05 +01:00
parent ebcf5f4266
commit 9671345634
+2 -2
View File
@@ -769,7 +769,7 @@ test('joining an event directly: the secret first, then ONE Join naming the even
expect(registration()).toEqual({ direct: true, meetingPointIds: [], registered: true });
backendProcesses('join', E);
await until(() => latest?.getEvent(E)?.participantCount === 1, 'the event counting my sign-up');
await until(() => view().event === 1 && view().mp === 0, 'the event counting my sign-up, M listed with no member');
expect(view().mp).toBe(0);
expect(registration()).toEqual({ direct: true, meetingPointIds: [], registered: true });
await until(() => latest?.getUserEvents(ALICE).some(e => e.id === E) === true, 'the event on my home');
@@ -797,7 +797,7 @@ test('an event joined only through a meeting point: registered with no direct si
test("another member's direct sign-up in the event's list counts at the event and in no meeting point (R5)", async () => {
render({ eventMembers: [BOB_URN_E, CAROL_URN_E], members: [CAROL_URN_E] });
await until(() => latest?.getEvent(E)?.participantCount === 2, 'the event counting both persons');
await until(() => view().event === 2 && view().mp === 1, 'the event counting both persons and M counting its one member');
expect(view()).toEqual({ event: 2, mp: 1, joined: false });
}, 30000);