-
-
Notifications
You must be signed in to change notification settings - Fork 202
Create comprehensive Playwright Unit Tests for Grid Row/Cell Pooling #9020
Copy link
Copy link
Closed
Labels
aiperformancePerformance improvements and optimizationsPerformance improvements and optimizationstesting
Description
Objective:
Create a new Playwright unit test suite (test/playwright/unit/grid/Pooling.spec.mjs) dedicated to verifying the correctness and performance of the Grid's Row and Cell Pooling mechanisms ("Fixed-DOM-Order").
Goals:
-
Strict Delta Verification:
- Validate that scrolling (vertical, horizontal, diagonal) generates ZERO structural DOM deltas (
moveNode,insertNode,removeNode) for pooled elements (rows/cells). - Confirm that updates are restricted to lightweight attributes (e.g.,
transform,textContent,aria-rowindex).
- Validate that scrolling (vertical, horizontal, diagonal) generates ZERO structural DOM deltas (
-
Edge Case Coverage:
- Vertical Scroll: Verify row recycling.
- Horizontal Scroll: Verify cell recycling (especially with locked columns).
- Diagonal Scroll: Verify simultaneous row/cell recycling.
- Buffer Range: Verify pooling logic correctly handles the start/end of the dataset (clamping).
-
Performance Auditing:
- Assert that the number of deltas matches the expected minimum (e.g., if 5 rows recycle, exactly 5 row updates + cell content updates).
- Challenge the system to ensure no redundant updates occur (e.g., updating hidden pool rows).
Why:
The current Teleportation.spec.mjs touches on this but is mixed with other concerns. A dedicated suite will serve as a regression guard for the critical "Fixed-DOM-Order" performance architecture.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
aiperformancePerformance improvements and optimizationsPerformance improvements and optimizationstesting