Skip to content

E2E: Cover the Canvas Asset Gate's Dead-Bundle Diagnostics #2361

Description

@Misplon

Follow-up to the canvas asset gate work on #2344.

When the canvas's concatenated jquery bundle fails outright, the gate warns once
per canvas document and keeps polling without cloning anything — verified by hand
during development (the warn was observed live, and the walk stayed out of the
dependency-less canvas).

An automated test for that path could not be landed: aborting the bundle with
Playwright's route.abort() under the Playground harness did not produce a
dependency-less canvas — the widget form rendered and no gate diagnostic fired.
Why the abort does not deprive the canvas there has not been established.

To close this: work out what the aborted request actually does to the canvas
under Playground (does WordPress fall back to unconcatenated handles? does the
blob document retry?), then add the abort-path test to
tests/e2e/wb-canvas-asset-gate.test.js, asserting one terminal warn naming the
missing handles, no clone-walk output in the canvas body, no
#sowb-editor-js-retry, and recovery once the dependencies arrive.

Blocked in CI by #2329 either way; runs locally via npm run tests.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions