Skip to content

Share the runtime test's starter note through the remote form - #479

Merged
tnkuehne merged 1 commit into
mainfrom
fix/runtime-test-starter-remote-form
Nov 28, 2026
Merged

tnkuehne merged 1 commit into
mainfrom
fix/runtime-test-starter-remote-form

Conversation

@tnkuehne

Copy link
Copy Markdown
Contributor

Summary

Since #470 the SvelteKit starter saves notes with a remote form (createNote in notes.remote.ts) instead of a page action. The runtime deployment test still posted the note as a form to /, which now returns 405, so main-checks / rust-runtime fails on main from e073296 onward.

The test now reads the form's ID from the page's action="?/remote=…", posts the note and photo to /_app/remote/<id> with the field names the form renders (message/<id>, photo/<id>), and checks that the result has no validation issues. The existing checks that the page shows the note and serves the photo byte for byte stay unchanged.

Testing

  • Built the SvelteKit starter and ran it with wrangler dev and local D1/R2: POST / returns 405 (the CI failure); the new request returns {"type":"result"} with the note ID, the page then lists the note, and the stored photo is identical to the upload. An empty message returns a result with issues.
  • oxfmt --check, oxlint --type-aware --deny-warnings and svelte-check for the changed file.
  • The runtime suite itself runs in CI.

The SvelteKit starter now saves notes with a remote form instead of a
page action, so a form POST to / returns 405. The runtime deployment
test reads the form's ID from the page and posts the note and photo to
its remote endpoint with the field names the form renders.
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
widefleet-docs 91e96e7 Nov 28 2026, 09:40 PM

@tnkuehne
tnkuehne merged commit d1c76ab into main Nov 28, 2026
17 checks passed
@tnkuehne
tnkuehne deleted the fix/runtime-test-starter-remote-form branch November 28, 2026 21:57
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