Wait for the event and meeting point counts together in the direct sign-up tests
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user