diff --git a/t/cypress/integration/Circulation/bookingsModalDatePicker_spec.ts b/t/cypress/integration/Circulation/bookingsModalDatePicker_spec.ts index 384387dab5..fc7a0d1a93 100644 --- a/t/cypress/integration/Circulation/bookingsModalDatePicker_spec.ts +++ b/t/cypress/integration/Circulation/bookingsModalDatePicker_spec.ts @@ -452,6 +452,7 @@ describe("Booking Modal Date Picker Tests", () => { * └─ Renewal 1 Period (Days 60-64) * * Expected Visual Styling: + * - Day 50: Bold (start date) * - Day 59: Bold (issue period) * - Day 64: Bold (renewal 1 period) * - Day 69: Bold (renewal 2 period) @@ -561,9 +562,12 @@ describe("Booking Modal Date Picker Tests", () => { */ // Calculate expected bold dates based on circulation rules (like original test) - // Bold dates occur at period endpoints: start + issuelength, start + issuelength + renewalperiod, etc. + // Bold dates occur at: the start date itself, plus period endpoints const expectedBoldDates = []; + // Start date is always bold (see place_booking.js boldDates = [new Date(startDate)]) + expectedBoldDates.push(clearZoneStart); + // Issue period end (after issuelength days) expectedBoldDates.push( clearZoneStart.add(dateTestCirculationRules.issuelength, "day")