Remove scheduling cheerleader special case
Some checks failed
E2E Tests / e2e (push) Has been cancelled
Tests and checks on push / run-checks-and-tests (push) Has been cancelled
Updates translation progress / update-translation-progress-issue (push) Has been cancelled

This commit is contained in:
Kalle
2026-09-05 07:19:47 +03:00
parent b6e202c277
commit 41a56ed7d7
6 changed files with 14 additions and 22 deletions

View File

@@ -335,7 +335,7 @@ describe("AvailabilityRepository.findWeekReminderUserIds", () => {
expect(await reminderUserIds()).toEqual([]);
});
test("leaves cheerleaders out, the schedule surfaces do not show them", async () => {
test("reminds cheerleaders like any other member", async () => {
await TeamFactory.create(
{ memberUserIds: [users.id(1), users.id(2), users.id(3)] },
{ roles: { [users.id(3)]: "CHEERLEADER" } },
@@ -345,7 +345,7 @@ describe("AvailabilityRepository.findWeekReminderUserIds", () => {
weekStartsAt: WEEK_STARTS_AT,
});
expect(await reminderUserIds()).toEqual([users.id(2)]);
expect(await reminderUserIds()).toEqual([users.id(2), users.id(3)]);
});
});