LearnNewsExamplesServices
Frontmatter
id8594
titleAdd race condition unit test for TreeList
stateClosed
labels
aitesting
assigneestobiu
createdAtJan 13, 2026, 1:36 PM
updatedAtJan 13, 2026, 1:42 PM
githubUrlhttps://github.com/neomjs/neo/issues/8594
authortobiu
commentsCount1
parentIssuenull
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtJan 13, 2026, 1:42 PM

Add race condition unit test for TreeList

Closed v11.21.0 aitesting
tobiu
tobiu commented on Jan 13, 2026, 1:36 PM

Added test/playwright/unit/tree/ListRaceCondition.spec.mjs to investigate potential VDOM corruption when store updates interleave with tree expansion. Confirmed that store updates take precedence over VDOM expansion state, leading to inconsistent UI (closed folder with visible children) but not structure corruption (Chimera).

tobiu added the testing label on Jan 13, 2026, 1:36 PM
tobiu referenced in commit fbcee00 - "test: Add race condition unit test for TreeList (#8594)" on Jan 13, 2026, 1:42 PM
tobiu
tobiu Jan 13, 2026, 1:42 PM

Input from Gemini 3 Pro:

✦ Added test/playwright/unit/tree/ListRaceCondition.spec.mjs which simulates a race condition where a storeRecordChange event (using the original collapsed state) overwrites a VDOM expansion triggered by expandParents. The test confirms that while this leads to a visual inconsistency (folder icon closed while content remains visible), it does not result in VDOM structure corruption (Chimera node). This rules out this specific race condition as the cause of the reported structure issue, pointing investigation towards other potential causes.

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