Skip to content

examples(upload-modes): WS-disabled e2e for Direct + Volume (#448, #449)#78

Merged
adnaan merged 2 commits into
mainfrom
examples/ws-disabled-upload-modes
Jun 13, 2026
Merged

examples(upload-modes): WS-disabled e2e for Direct + Volume (#448, #449)#78
adnaan merged 2 commits into
mainfrom
examples/ws-disabled-upload-modes

Conversation

@adnaan

@adnaan adnaan commented Jun 13, 2026

Copy link
Copy Markdown
Contributor

Adds browser e2e proving all four upload modes complete with the WebSocket disabled, and documents it.

  • TestUploadModes_DirectWSDisabled_E2E — stubs a dead window.WebSocket, selects the Direct file, asserts the presigned PUT lands in the sink and #direct-result renders (proves the HTTP upload_complete handshake ran the completion action — livetemplate#448).
  • TestUploadModes_VolumeWSDisabled_E2E — same dead socket, asserts the Volume file is retained under storage/volume (Dir) and #volume-result renders the path (livetemplate#449).
  • Refactors the shared chromium/app/skip setup into helpers; hoists the killWS stub to a package const.
  • README + recipe note the WS-disabled behavior.

Verified locally against the unreleased server (livetemplate/livetemplate#455) + client (livetemplate/client#132): all four e2e green in Chromium. Tests stay gated on LVT_UPLOAD_MODES_E2E + LVT_LOCAL_CLIENT (CI-skipped per #67).

⚠️ Merge after the livetemplate + client releases, then bump this repo's go.mod to the new livetemplate so the committed test exercises the released fix.

🤖 Generated with Claude Code

adnaan and others added 2 commits June 12, 2026 23:01
Add TestUploadModes_DirectWSDisabled_E2E and TestUploadModes_VolumeWSDisabled_E2E,
mirroring the existing Proxied WS-disabled test (stub a dead window.WebSocket to
force the HTTP transport). Direct proves the HTTP upload_complete handshake runs
the completion action (#448); Volume proves the multipart fallback stages to Dir,
retained (#449). Refactor the shared chromium/app/skip setup into helpers and
hoist the killWS stub to a package const.

Document the WS-disabled behavior in the README and recipe. Tests stay gated on
LVT_UPLOAD_MODES_E2E + LVT_LOCAL_CLIENT (verified locally against the unreleased
server/client; CI-skipped per docs#67).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…fixes

v0.14.0 ships the server side of the upload-modes WS-disabled e2e (#448 Direct
completion over HTTP, #449 Volume multipart→Dir), so the committed
*WSDisabled_E2E tests now compile and run against the released fix.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@adnaan adnaan merged commit 8402a48 into main Jun 13, 2026
3 checks passed
@adnaan adnaan deleted the examples/ws-disabled-upload-modes branch June 13, 2026 08:22
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