Problem
PR #171 (Closes #169) added unit and integration coverage for the cross-module-observation elision fix (a display-only component observed via whenDefined / :defined / instanceof is forced to ship instead of being elided), but the e2e network-probe layer was deferred to #172 and never landed (#172 only added the vendor-never-fetched and inert-route probes). So there is no real-browser proof that an OBSERVED display-only component's module is actually downloaded. This closes the all-test-layers gap on the merged #169 work.
Design / approach
Add a blog fixture plus an e2e probe mirroring the existing build-stamp pattern in test/e2e/e2e.test.mjs:
- A display-only component (no
@event, no non-state reactive prop, no lifecycle override, no signal) that would normally elide.
- A shipping module that observes it via
customElements.whenDefined('the-tag') (or a :defined CSS rule / instanceof), rendered on a blog page.
- Probe: the browser DOES request the observed component's module (forced to ship), AND the component still SSRs its markup. The negative control (same component without an observer is NOT downloaded) is already proven by the
build-stamp probe, so a comment reference suffices.
Acceptance criteria
Problem
PR #171 (Closes #169) added unit and integration coverage for the cross-module-observation elision fix (a display-only component observed via
whenDefined/:defined/instanceofis forced to ship instead of being elided), but the e2e network-probe layer was deferred to #172 and never landed (#172 only added the vendor-never-fetched and inert-route probes). So there is no real-browser proof that an OBSERVED display-only component's module is actually downloaded. This closes the all-test-layers gap on the merged #169 work.Design / approach
Add a blog fixture plus an e2e probe mirroring the existing
build-stamppattern intest/e2e/e2e.test.mjs:@event, no non-state reactive prop, no lifecycle override, no signal) that would normally elide.customElements.whenDefined('the-tag')(or a:definedCSS rule /instanceof), rendered on a blog page.build-stampprobe, so a comment reference suffices.Acceptance criteria
WEBJS_E2E=1e2e suite passes with the new probeexamples/blog/AGENTS.mdfixtures section notes the new observed-component fixture