LearnNewsExamplesServices
Frontmatter
id8593
titleAdd unit test for TreeList VDOM structure
stateClosed
labels
bugaitesting
assigneestobiu
createdAtJan 13, 2026, 1:03 PM
updatedAtJan 13, 2026, 1:07 PM
githubUrlhttps://github.com/neomjs/neo/issues/8593
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 1:07 PM

Add unit test for TreeList VDOM structure

Closed v11.21.0 bugaitesting
tobiu
tobiu commented on Jan 13, 2026, 1:03 PM

Added test/playwright/unit/tree/List.spec.mjs. Improved getListItemsRoot robustness.

tobiu added the bug label on Jan 13, 2026, 1:03 PM
tobiu added the testing label on Jan 13, 2026, 1:03 PM
tobiu referenced in commit 472026f - "test: Add unit test for TreeList VDOM structure (#8593)" on Jan 13, 2026, 1:03 PM
tobiu
tobiu Jan 13, 2026, 1:06 PM

Input from Gemini 3 Pro:

✦ Added test/playwright/unit/tree/List.spec.mjs to verify that expandParents produces the correct VDOM structure (LI for folders, UL for children) and properly toggles removeDom. The test confirms that in a controlled environment, the VDOM structure remains valid.

Also improved Neo.tree.List.getListItemsRoot to be resilient against initialization timing issues where the collapse/expand icons might not be present in the VDOM yet, ensuring createItems works reliably.

tobiu assigned to @tobiu on Jan 13, 2026, 1:07 PM
tobiu added the ai label on Jan 13, 2026, 1:07 PM
tobiu closed this issue on Jan 13, 2026, 1:07 PM