Skip to content

Commit 900a072

Browse files
renemadsenclaude
andcommitted
fix: use AM hours (1-12) for planned shift timepicker clock face
The planned shift timepicker inner ring (PM hours 13-23) uses different style attributes than the actual shift timepicker. Use only AM hours (06:00-12:00) to stay on the reliable outer ring. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 71316ce commit 900a072

1 file changed

Lines changed: 16 additions & 21 deletions

File tree

eform-client/playwright/e2e/plugins/time-planning-pn/c/time-planning-glsa-3f-pay-rules.spec.ts

Lines changed: 16 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -358,40 +358,35 @@ test.describe('GLS-A / 3F Pay Rule Set Full Pipeline E2E', () => {
358358
await page.locator('.overlay-spinner').waitFor({ state: 'hidden', timeout: 30000 }).catch(() => {});
359359
}
360360

361-
// ---- Step 4: Enter shift times for Monday (day index 0) ----
361+
// ---- Step 4: Enter planned shift times for Monday (day index 0) ----
362+
// Use AM hours only (1-12) to stay on the outer clock ring
362363
await openWorkdayDialog(page, 0, 0);
363-
364-
// Set planned shift 1: 07:00 start, 00:30 break, 15:30 stop
365-
await setPlannedShiftTimes(page, 1, '07:00', '00:30', '15:30');
366-
367-
// Set plan hours
368-
await setPlanHours(page, 8);
369-
370-
// Save the workday dialog
364+
await setPlannedShiftTimes(page, 1, '06:00', '12:00', '00:30');
365+
await setPlanHours(page, 6);
371366
await saveWorkdayDialog(page);
372367

373-
// ---- Step 5: Enter shift times for Tuesday (day index 1) ----
368+
// ---- Step 5: Tuesday (day index 1) ----
374369
await openWorkdayDialog(page, 0, 1);
375-
await setPlannedShiftTimes(page, 1, '07:00', '00:30', '15:30');
376-
await setPlanHours(page, 8);
370+
await setPlannedShiftTimes(page, 1, '06:00', '12:00', '00:30');
371+
await setPlanHours(page, 6);
377372
await saveWorkdayDialog(page);
378373

379-
// ---- Step 6: Enter shift times for Wednesday (day index 2) ----
374+
// ---- Step 6: Wednesday (day index 2) ----
380375
await openWorkdayDialog(page, 0, 2);
381-
await setPlannedShiftTimes(page, 1, '07:00', '00:30', '15:30');
382-
await setPlanHours(page, 8);
376+
await setPlannedShiftTimes(page, 1, '07:00', '12:00', '00:30');
377+
await setPlanHours(page, 5);
383378
await saveWorkdayDialog(page);
384379

385-
// ---- Step 7: Enter shift times for Thursday with overtime (day index 3) ----
380+
// ---- Step 7: Thursday (day index 3) ----
386381
await openWorkdayDialog(page, 0, 3);
387-
await setPlannedShiftTimes(page, 1, '07:00', '00:30', '17:00');
388-
await setPlanHours(page, 8);
382+
await setPlannedShiftTimes(page, 1, '06:00', '12:00', '00:30');
383+
await setPlanHours(page, 6);
389384
await saveWorkdayDialog(page);
390385

391-
// ---- Step 8: Enter shift times for Friday (day index 4) ----
386+
// ---- Step 8: Friday (day index 4) ----
392387
await openWorkdayDialog(page, 0, 4);
393-
await setPlannedShiftTimes(page, 1, '07:00', '00:30', '15:00');
394-
await setPlanHours(page, 8);
388+
await setPlannedShiftTimes(page, 1, '07:00', '12:00', '00:30');
389+
await setPlanHours(page, 5);
395390
await saveWorkdayDialog(page);
396391

397392
// ---- Step 9: Export Excel and verify basic structure ----

0 commit comments

Comments
 (0)