Skip to content

fix(e2e): re-ground staging-gate specs for editor-as-landing#822

Merged
MrCoder merged 1 commit into
masterfrom
fix/reground-e2e-editor-landing
Jun 18, 2026
Merged

fix(e2e): re-ground staging-gate specs for editor-as-landing#822
MrCoder merged 1 commit into
masterfrom
fix/reground-e2e-editor-landing

Conversation

@MrCoder

@MrCoder MrCoder commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Why

The rewrite/web-foundation merge (#821) brought editor-as-landing to master: bare / now boots the editor (resume last-code / sample), and the hub moved to /?view=diagrams. The root e2e/tests/ staging-gate specs were still hub-adapted (/ = HomeView), so the staging E2E gate failed on 5 tests (smoke, library ×3, persistence) — which correctly blocked the prod release (no draft was cut).

What

Re-ground the root specs for editor-as-landing (single-source helper + the 3 specs). App code untouched — e2e/ only.

  • helpers/hub.jsgotoHome()/?view=diagrams (+ HUB_URL const); openEditor() already handled the editor surface so bare / now no-ops the click-through.
  • smoke.spec.js — the /-is-hub test now asserts / boots the editor (dsl-editor visible, home-view absent) and /?view=diagrams renders the hub.
  • library.spec.js — flows through the fixed gotoHome/reloadIntoLibrary; all list/filter/export/import assertions unchanged.
  • persistence.spec.js — bare / carries no ?id (save doesn't navigate), so reload restore rides the last-code localStorage['code'] slot (the boot path editor-as-landing actually takes). Removed only the obsolete ?id URL guards; the type→save→reload→UNIQUE_PARTICIPANT-restored assertion is preserved.

Validation

npx playwright test e2e/tests/{smoke,library,persistence}.spec.js --project=chromium9 passed, 0 failed locally (deterministic across runs). No app/web/ code changed.

…are / boots the editor (not the hub); gotoHome → /?view=diagrams; smoke asserts editor@/ + hub@?view=diagrams; persistence restore rides the last-code slot (bare / carries no ?id); 9/9 local
@MrCoder MrCoder merged commit b58f54e into master Jun 18, 2026
4 checks passed
@MrCoder MrCoder deleted the fix/reground-e2e-editor-landing branch June 18, 2026 01:39
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.

1 participant