Skip to content

Regression: Unit Test Failures in Teleportation.spec.mjs after #9200 #9210

@tobiu

Description

@tobiu

Unit tests in test/playwright/unit/grid/Teleportation.spec.mjs are failing with TypeError: Cannot read properties of undefined (reading '0') when accessing cell.cn[0].

This started happening after the introduction of Neo.grid.column.Component optimization (Issue #9200).

Hypothesis:
The optimization relies on record.version to short-circuit updates. If Teleportation.spec.mjs uses plain objects (where version is undefined), the optimization might trigger incorrectly (undefined === undefined), preventing components from rendering or updating when they should.

Objective:

  1. Investigate Teleportation.spec.mjs to understand how it mocks data.
  2. Fix Neo.grid.column.Component to handle cases where record.version is undefined (fallback to standard update).
  3. Ensure unit tests pass.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions