Skip to content

Commit 5c1a902

Browse files
committed
test: adjust calendar status sync for presence engine
1 parent e27a1e9 commit 5c1a902

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

apps/meteor/tests/end-to-end/api/calendar.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -691,13 +691,16 @@ describe('[Calendar Events]', () => {
691691

692692
await sleep(3000);
693693

694+
// The display `status` remains offline because the test user has no DDP session.
695+
// The presence engine persists the claim in statusDefault but the display status
696+
// respects connection reality. We verify the claim via statusSource instead.
694697
const statusResponseDuring = await request.get('/api/v1/users.getStatus').set(userCredentials).expect(200);
695-
expect(statusResponseDuring.body.status).to.equal('busy');
698+
expect(statusResponseDuring.body.statusSource).to.equal('external');
696699

697700
await sleep(5000);
698701

699702
const statusResponseAfter = await request.get('/api/v1/users.getStatus').set(userCredentials).expect(200);
700-
expect(statusResponseAfter.body.status).to.equal('away');
703+
expect(statusResponseAfter.body.statusSource).to.equal('manual');
701704

702705
await request.post('/api/v1/calendar-events.delete').set(userCredentials).send({ eventId }).expect(200);
703706
});

0 commit comments

Comments
 (0)