Frontmatter
| id | 8594 |
| title | Add race condition unit test for TreeList |
| state | Closed |
| labels | aitesting |
| assignees | tobiu |
| createdAt | Jan 13, 2026, 1:36 PM |
| updatedAt | Jan 13, 2026, 1:42 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8594 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 13, 2026, 1:42 PM |
Add race condition unit test for TreeList

tobiu
Jan 13, 2026, 1:42 PM
Input from Gemini 3 Pro:
✦ Added
test/playwright/unit/tree/ListRaceCondition.spec.mjswhich simulates a race condition where astoreRecordChangeevent (using the original collapsed state) overwrites a VDOM expansion triggered byexpandParents. 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
Added
test/playwright/unit/tree/ListRaceCondition.spec.mjsto 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).