Skip to content

test(e2e): update stale data-layout assertion to wj:children markers#32

Merged
vivek7405 merged 1 commit into
mainfrom
fix/e2e-stale-data-layout-assertion
May 20, 2026
Merged

test(e2e): update stale data-layout assertion to wj:children markers#32
vivek7405 merged 1 commit into
mainfrom
fix/e2e-stale-data-layout-assertion

Conversation

@vivek7405
Copy link
Copy Markdown
Collaborator

Summary

The e2e test layout renders a data-layout wrapper around page content was authored on 2026-04-19. The framework switched from a single [data-layout] wrapper attribute to per-layout <!--wj:children:<segment>--> comment markers on 2026-05-16 (f216f0e). The test wasn't updated; nobody noticed because the e2e suite is gated behind WEBJS_E2E=1 and doesn't run in regular CI.

Surfaced as a 1/48 failure when I ran the gated suite as post-merge verification for #31.

Fix

Updates the test to walk the comment tree via NodeIterator(document, SHOW_COMMENT) and assert presence of at least one wj:children: marker. Keeps the same <header>/<main> structural assertions.

Test plan

  • WEBJS_E2E=1 node --test --test-name-pattern="wj:children" test/e2e.test.mjs passes (1/1)
  • Full gated suite re-run after merge will show 48/48

The e2e test 'layout renders a data-layout wrapper around page content'
was authored 2026-04-19 (52cb33f). The framework switched from a
single [data-layout] wrapper attribute to per-layout
<!--wj:children:<segment>--> comment markers on 2026-05-16 (f216f0e).
The test wasn't updated; nobody noticed because the e2e suite is gated
behind WEBJS_E2E=1 and doesn't run in regular CI.

Updates the assertion to look for the comment markers via
NodeIterator + SHOW_COMMENT. Verifies marker presence + the same
<header>/<main> structural assertions as before.

Verified: WEBJS_E2E=1 node --test --test-name-pattern="wj:children"
test/e2e.test.mjs passes (1/1).

Unrelated to the lit-API parity merge (#31); just unblocking the
gated suite from showing a false failure on the next run.
@vivek7405 vivek7405 merged commit 15113cb into main May 20, 2026
@vivek7405 vivek7405 deleted the fix/e2e-stale-data-layout-assertion branch May 20, 2026 21:42
vivek7405 added a commit that referenced this pull request May 21, 2026
…32)

The e2e test 'layout renders a data-layout wrapper around page content'
was authored 2026-04-19 (52cb33f). The framework switched from a
single [data-layout] wrapper attribute to per-layout
<!--wj:children:<segment>--> comment markers on 2026-05-16 (277dda2).
The test wasn't updated; nobody noticed because the e2e suite is gated
behind WEBJS_E2E=1 and doesn't run in regular CI.

Updates the assertion to look for the comment markers via
NodeIterator + SHOW_COMMENT. Verifies marker presence + the same
<header>/<main> structural assertions as before.

Verified: WEBJS_E2E=1 node --test --test-name-pattern="wj:children"
test/e2e.test.mjs passes (1/1).

Unrelated to the lit-API parity merge (#31); just unblocking the
gated suite from showing a false failure on the next run.
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