Skip to content

test(e2e): site editor over a deco serve connect link - #7842

Closed
tlgimenes wants to merge 8 commits into
split/42-delivery-stubfrom
split/43-deco-serve-e2e
Closed

tlgimenes wants to merge 8 commits into
split/42-delivery-stubfrom
split/43-deco-serve-e2e

Conversation

@tlgimenes

@tlgimenes tlgimenes commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Part of the v8 Studio stack, split from #7728, #7770 and #7766 (closed). Base: #7796. The top of the stack, #7843, has the same code as those three PRs combined.

Adds a deco serve stand-in built from @decocms/blocks' content protocol and a spec that opens /site-editor through a connect link. The e2e package gains the @decocms/blocks dependency (bun.lock e2e hunk) and the ban-e2e-app-imports allowlist entry.

Merge after the API, daemon and web stacks (and after #7841). This PR's own diff is only its 5 files.

What to look at

  • Why the e2e package may import @decocms/blocks: it is the published Blocks framework, not Studio source; its content protocol is the wire contract the spec drives (see the comment in plugins/ban-e2e-app-imports.js).

Stack

e2e track: previous: #7841 · next: #7843

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig


Summary by cubic

Adds a deco serve stand-in and an e2e spec that opens /site-editor through a connect link and drives the site editor against it.

  • The stand-in wraps the published @decocms/blocks content protocol handler and filesystem storage over real HTTP, no token, like the CLI serves one. It lives in packages/e2e/fixtures/deco-serve-stub.ts.
  • The spec covers accountless and signed-in flows, edits to a field, a Lazy<T> field and a secret (the plaintext never leaves the browser), CMS.json creation and concurrent writer guards, waiting for a stopped server and reconnecting, refusing off-machine endpoints, and the org rail.
  • @decocms/blocks is pinned to the 8.1.0 release and added to the e2e package and the ban-e2e-app-imports allowlist.

Written for commit 01edfd9. Summary will update on new commits.

View guided diff Turn on auto-fix

Adds a deco serve stand-in built from @decocms/blocks' content protocol and a spec that opens /site-editor through a connect link. The e2e package gains the @decocms/blocks dependency and the ban-e2e-app-imports allowlist entry.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig
@tlgimenes

Copy link
Copy Markdown
Contributor Author

@decocms/blocks 8.1.0 is released (npm latest). 3cc2ab4 pins packages/e2e to exactly 8.1.0 (was a 8.1.0-next.N prerelease); bun.lock changes only that spec line and the @decocms/blocks package record. Cascaded up the stack by normal merges; on the top (split/50 499b498): Sandbox (incl. docker-smoke), Checks & Unit Tests and E2E all green, apps/api and apps/web typecheck clean.

@tlgimenes

Copy link
Copy Markdown
Contributor Author

Folded into #7887 (API) / #7888 (web, stacked on #7887). The tree of #7888 equals this stack's top (split/51-v8-per-site). The branch is kept.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WNwbSEePYNcY5YCgqZURig

@tlgimenes tlgimenes closed this Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

claude PR authored by a coding agent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant