Fix flaky calendar test (#12760)

Test was flaky because sometimes a calendar event is associated to an
account which the user does not have access to

Removing the snapshot to test the exact response value but the test is
still there (more flexible)
This commit is contained in:
Félix Malfait
2025-06-20 15:30:42 +02:00
committed by GitHub
parent 19fe508ec3
commit ea226f9e71
2 changed files with 8 additions and 4 deletions

View File

@ -4,11 +4,11 @@ exports[`calendarEventsResolver (e2e) should find many calendarEvents 1`] = `
{
"createdAt": Any<String>,
"deletedAt": null,
"description": "Daily team synchronization meeting to discuss progress and blockers.",
"description": Any<String>,
"endsAt": Any<String>,
"id": "20202020-0001-4e7c-8001-123456789cde",
"startsAt": Any<String>,
"title": "Team Standup",
"title": Any<String>,
"updatedAt": Any<String>,
}
`;
@ -17,11 +17,11 @@ exports[`calendarEventsResolver (e2e) should find one calendarEvent 1`] = `
{
"createdAt": Any<String>,
"deletedAt": null,
"description": "Daily team synchronization meeting to discuss progress and blockers.",
"description": Any<String>,
"endsAt": Any<String>,
"id": "20202020-0001-4e7c-8001-123456789cde",
"startsAt": Any<String>,
"title": "Team Standup",
"title": Any<String>,
"updatedAt": Any<String>,
}
`;

View File

@ -31,6 +31,8 @@ describe('calendarEventsResolver (e2e)', () => {
endsAt: expect.any(String),
startsAt: expect.any(String),
updatedAt: expect.any(String),
title: expect.any(String),
description: expect.any(String),
});
});
@ -51,6 +53,8 @@ describe('calendarEventsResolver (e2e)', () => {
endsAt: expect.any(String),
startsAt: expect.any(String),
updatedAt: expect.any(String),
title: expect.any(String),
description: expect.any(String),
});
});
});