Grid Test API for Consumers
A stable, framework-agnostic testing API that lets consumers query and drive a grid in their own tests by row and column semantics rather than DOM details. This keeps consumer tests stable across WarGrid DOM changes.
Planned. This page shows the specification from issue #210. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid alongside a test runner panel showing a sample test script and its pass/fail results.
Expected behavior
The test passes against the correct grid. Injecting the bug makes the sort assertion fail with a readable diff. Stepping highlights the cell being acted on.
Planned API surface
getGridTestertester.getCell(rowKey,colId)tester.getVisibleRowstester.sortBytester.editCelltester.waitForIdletester.getHeaderAcceptance criteria
- The tester API is covered by semantic versioning as public API (pending)
- It works with virtualised rows by scrolling as needed (pending)
- waitForIdle resolves after pending renders and async data (pending)
- Error messages identify the row key and column id (pending)