Skip to content

Add E2E test coverage for preview URL routing #389

@ghostwriternr

Description

@ghostwriternr

The proxyToSandbox()sandbox.fetch() path (preview URL routing for WebSocket upgrades) has no E2E test coverage. A this binding bug in the getSandbox() proxy went undetected because:

  • Unit tests mock the stub, so this binding issues don't manifest
  • Existing WebSocket E2E tests use wsConnect() (already in enhancedMethods), not preview URLs

A unit test for the proxy contract has been added, but an E2E test that actually hits a preview URL would catch routing, token validation, and port switching issues end-to-end.

Blocked on: The E2E test worker runs on .workers.dev which doesn't support exposePort(). The test infrastructure needs a custom domain with wildcard DNS before this test can be added.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions