Skip to content

Two tile-widen e2e specs are stale against the grafana-grid@2 placement shape #565

Description

@BorisTyshkevich

What

Two tile-open-workbench e2e specs fail deterministically on all three engines (chromium, firefox, webkit) on main. Tile widen no longer increases a grid tile's rendered height, and for a narrow tile the placement entry never appears at all.

1) tests/e2e/tile-open-workbench.spec.js:349
   › widen doubles a grid tile's rendered width and height, then wraps
   expect(wide.height).toBeGreaterThan(before.height)
   Expected: > 208
   Received:   208            ← width grows (line 348 passes); height does not

2) tests/e2e/tile-open-workbench.spec.js:398
   › a narrow tile drops the inline widen but keeps its menu row
   await expect.poll(() => …items?.['t-sales']?.span ?? null).toBe(2)
   Expected: 2
   Received: null             ← Timeout 5000ms; the placement entry is absent

Line 350–351 asserts the persisted placement should be { span: 12, height: 4 }, so both the rendered geometry and the stored height are in question.

Evidence — CI, both engines-wide and reproducible

commit run result
8decf2b (main, current) 30474498800 6 failed, 568 passed
f68861c (merge of #549, pre-dates today's work) 30475331599 6 failed, 556 passed

6 = the same 2 specs × 3 engines in both runs. Deterministic, not flake.

Not caused by today's batch

f68861c is the merge of PR #549 and is the commit main sat at before today's bug/low batch (#554#558, #561#563). It already fails identically, so none of those PRs introduced this. That also matches three independent local reproductions on pre-batch bases during that work.

This points at the grafana-grid@2 style-sizing track — #535 / #538 / #549 — or something earlier. The exact culprit is not yet pinned. Narrowing it is cheap and mechanical: push a temp branch at a candidate commit and gh workflow run ci.yml --ref <branch>, since workflow_dispatch is one of the few events that actually runs the e2e job (see #564). I stopped at "not from today's batch" rather than guessing a specific PR.

Why this went unnoticed

The e2e job never runs on pull requests or on pushes to main — it is gated to tags, schedule and manual dispatch — while the overall check still reports success. That is filed as #564; this issue is the concrete regression that gap let through.

Acceptance

  • Both specs pass on chromium, firefox and webkit.
  • Whatever the fix, it restores the behaviour the specs describe (widen grows height and persists { span: 12, height: 4 }; a narrow tile still records span: 2) rather than relaxing the assertions to match current output — the specs encode Dashboard panel header: duplicate, widen and expand actions #535's intended widen semantics.
  • Identify the originating change so the fix can say what it restores.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions