Skip to content

Phase 5 PR 3: d1m playwright variant — UseOneMinuteIntervals=true#1549

Merged
renemadsen merged 1 commit into
stablefrom
feat/use-one-minute-intervals-phase-5-pr3-d1m
May 3, 2026
Merged

Phase 5 PR 3: d1m playwright variant — UseOneMinuteIntervals=true#1549
renemadsen merged 1 commit into
stablefrom
feat/use-one-minute-intervals-phase-5-pr3-d1m

Conversation

@renemadsen
Copy link
Copy Markdown
Member

Summary

Third PR in the 9-PR Phase-5 sequence. Adds the d1m shard variant
exercising UseOneMinuteIntervals = true at off-grid clock-face minutes
inside the inner-ring 13-23 hour positions. Mirrors PR #1545 (b1m, outer
ring 1-10) and PR #1548 (c1m, outer→inner 08:xx-19:xx) — same shape, new
neighborhood.

  • Own seed copy under d1m/ (identical to c1m/ / a/).
  • d1m/post-migration.sql flips UseOneMinuteIntervals = 1 on every
    active assigned site (picked up by the generic post-migration workflow
    step that already lives on stable).
  • Single multi-shift (3-5) round-trip spec at five non-aligned times
    spanning 13:02 - 23:39, all on the inner ring, mirroring b1m/c1m.
  • Workflow matrix.test: updated in both dotnet-core-master.yml and
    dotnet-core-pr.yml to include d1m.
  • New OFFGRID_TIMES_D1M constants added to
    eform-client/playwright/helpers/one-minute-times.ts.

Why not clone d/dashboard-edit-a.spec.ts directly?

That source spec only fills shift 1 — the partial-shift shape that hits
the still-unresolved success:false path inside
TimePlanningPlanningService.Update (see PR #1545 + PR #1548 lessons).
d1m therefore ships the same multishift-shape clone as b1m/c1m with a
fresh time neighborhood, keeping the variant entry useful for the
flag-on code path without reproducing the deferred Update bug.

Test plan

  • d1m matrix shard goes green on CI.
  • No regressions on a-p shards or on b1m / c1m.

🤖 Generated with Claude Code

…er-ring 13-23

Third PR in the 9-PR Phase-5 sequence. Mirrors b1m / c1m: own seed copy,
post-migration patch flipping `UseOneMinuteIntervals = 1` on every active
assigned site, and a single multi-shift (3-5) round-trip spec at off-grid
times.

The d1m neighborhood targets the inner-ring 13-23 hour positions of the
timepicker clock face. b1m sweeps outer ring 1-10 (early morning), c1m
straddles the outer→inner transition (08:xx → 19:xx); d1m keeps every
shift entirely inside the inner ring so the variant matrix as a whole
exercises the full 24-hour surface at 1-minute granularity.

Per the brainstorm map, the d shard's source spec
(`d/dashboard-edit-a.spec.ts`) is NOT directly cloned — its two tests
only fill shift 1, the partial-shift shape that hits the still-unresolved
`success:false` path inside `TimePlanningPlanningService.Update` (see
PR #1545 / PR #1548 lessons). d1m therefore ships the same multishift
shape as b1m/c1m with a fresh time block, keeping the variant useful for
the flag-on code path without reproducing the deferred Update bug.

Workflow `matrix.test:` updated in both `dotnet-core-master.yml` and
`dotnet-core-pr.yml`. The generic post-migration step on stable picks up
`d1m/post-migration.sql` automatically — no workflow logic changes
needed.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings May 3, 2026 17:22
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Phase-5 Playwright shard variant (d1m) to exercise the UseOneMinuteIntervals = true path using off-grid, inner-ring (13–23) timepicker selections, and wires it into CI shard matrices.

Changes:

  • Add OFFGRID_TIMES_D1M to the shared Playwright time-literals helper.
  • Introduce the new d1m shard folder (seed copies, post-migration SQL patch, and a multi-shift round-trip spec).
  • Extend both PR and master CI workflow Playwright matrices to run the d1m shard.

Reviewed changes

Copilot reviewed 5 out of 7 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
eform-client/playwright/helpers/one-minute-times.ts Adds OFFGRID_TIMES_D1M constants for inner-ring off-grid times.
eform-client/playwright/e2e/plugins/time-planning-pn/d1m/post-migration.sql Enables UseOneMinuteIntervals for active assigned sites for the d1m shard via the existing post-migration mechanism.
eform-client/playwright/e2e/plugins/time-planning-pn/d1m/dashboard-edit-multishift.spec.ts New multi-shift (1–5) save+reload round-trip spec using inner-ring off-grid times.
.github/workflows/dotnet-core-pr.yml Adds d1m to the Playwright matrix for PR runs.
.github/workflows/dotnet-core-master.yml Adds d1m to the Playwright matrix for push runs.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +46 to +50
async function pickTime(page: Page, timeStr: string) {
// Position-based clock-face clicks. Works uniformly for h=0 (break
// times), unlike rotateZ-selector strategies. Identical helper to b1m/c1m.
const [hourStr, minuteStr] = timeStr.split(':');
const h = parseInt(hourStr, 10);
@renemadsen renemadsen merged commit 5ab4fd7 into stable May 3, 2026
36 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants