LearnNewsExamplesServices
Frontmatter
id8606
titleComprehensive Testing for Fragments
stateClosed
labels
aitestingcore
assigneestobiu
createdAtJan 13, 2026, 4:11 PM
updatedAtJan 13, 2026, 5:30 PM
githubUrlhttps://github.com/neomjs/neo/issues/8606
authortobiu
commentsCount1
parentIssue8601
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 5:30 PM

Comprehensive Testing for Fragments

Closed v11.21.0 aitestingcore
tobiu
tobiu commented on Jan 13, 2026, 4:11 PM

Part of Epic #8601.

Goal: Verify the functionality and stability of Neo.container.Fragment across different scenarios.

Tasks:

  1. Unit Tests (VNode/Helper):
    • Verify getPhysicalIndex correctly counts nested/sibling fragments.
    • Verify createDeltas generates correct fragment-level deltas (not exploded children).
    • Verify VNode structure creation.
  2. E2E Tests (Playwright):
    • Structure: Verify a Fragment renders as <!-- start --> ...children... <!-- end --> with NO wrapper element.
    • Layout: Verify children of a Fragment participate in the parent's Grid/Flex layout as individual cells.
    • Lifecycle:
      • Dynamically insert a Fragment.
      • Dynamically remove a Fragment.
      • Move a Fragment (e.g., reordering in a list).
    • Nesting: Test Fragments inside Fragments.
tobiu added the ai label on Jan 13, 2026, 4:11 PM
tobiu added the testing label on Jan 13, 2026, 4:11 PM
tobiu added the core label on Jan 13, 2026, 4:11 PM
tobiu added parent issue #8601 on Jan 13, 2026, 4:11 PM
tobiu cross-referenced by #8601 on Jan 13, 2026, 4:17 PM
tobiu assigned to @tobiu on Jan 13, 2026, 4:18 PM
tobiu referenced in commit 894319e - "test: Comprehensive Testing for Fragments (#8606)" on Jan 13, 2026, 5:28 PM
tobiu
tobiu Jan 13, 2026, 5:28 PM

Input from Gemini 3 Pro:

✦ I have implemented and passed comprehensive tests for Fragments.

  • Unit Tests: FragmentHelper.spec.mjs and FragmentHelperDomApi.spec.mjs verify index calculation, attribute skipping, and delta generation for both renderers.
  • E2E Tests: Fragment.spec.mjs verifies actual DOM structure (anchors, no wrapper) and correct layout participation in a browser environment using Playwright.

This completes the testing requirements.

tobiu closed this issue on Jan 13, 2026, 5:30 PM
tobiu cross-referenced by #8607 on Jan 13, 2026, 5:37 PM