Wait for an animation step on a specific dimension
Records the current slice position for the given dimension index and waits
until the position changes, indicating an animation step has completed.
This replaces post-animation-key timeouts where a dimension value is expected
to change (e.g., after pressing ] or starting an animation with k).
Parameters
page: Page
Playwright page
dimIndex: number
The dimension index to monitor for position changes
Wait for an animation step on a specific dimension
Records the current slice position for the given dimension index and waits until the position changes, indicating an animation step has completed. This replaces post-animation-key timeouts where a dimension value is expected to change (e.g., after pressing
]or starting an animation withk).