Repository navigation
F3: pseudo-row ARIA positions and full browser storage check (#52) - #90
Merged
Merged
Conversation
A Load more, loading, error or empty row is the last member of its branch's child set: aria-posinset is the real children + 1 and aria-setsize is -1 while the branch is incomplete, else the real children + 1. Real nodes are unchanged. Component tests assert exact positions for all five cases. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…52) After expanding branches and before sign-out, then after re-sign-in, read localStorage keys and values, sessionStorage keys and indexedDB.databases() names; require identical key sets and database names and no stored tree expansion state. A browser without indexedDB.databases() fails the test. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Refs #52
Behaviour
aria-posinsetis the number of rendered real children + 1.aria-setsizeis-1while the branch's load is incomplete, the same as its real siblings; otherwise it is the real children + 1, so an empty branch's row is 1 of 1. Real nodes are unchanged. This is the PM's default pattern, so no alternative needs justifying. The attributes now sit inTreeRow's shared props, so the five row kinds cannot drift apart. Nothing else in the tree changed: keyboard handling, focus, selection, paging, search and the roving tab stop are untouched.e2e/process-tree.spec.tsreads storage in the page after expanding five branches and before sign-out, and again after re-sign-in. It recordslocalStoragekeys and values,sessionStoragekeys and theindexedDB.databases()names. It asserts that the key sets and database names are identical, thatsessionStorageand IndexedDB are empty, and that no stored value contains expansion state. Expansion state means the expanded path segments (transport systems,operations,infrastructure) or thedata-row-keyof any expanded row. IfindexedDB.databasesis missing, thestorage()helper throws, so the test fails instead of skipping. No product storage code was added.lca-diff:mock-session:v1(the mock auth session: uid, email, verified flag); sessionStorage[]; IndexedDB[].Evidence that the tests fail before the change
src/services/mock/process-tree.test.tsx("process tree pseudo-row ARIA positions (F3: process tree pseudo-row ARIA positions and full browser storage check #52)") all failed on unmodifiedProcessTree.tsx. In each case the level matched butaria-posinset/aria-setsizecame backnull. All 20 tests in the file pass after the change.IDBFactory.prototype.databasesthrough an init script fails withindexedDB.databases() is unavailable in this browser."transport systems"into localStorage before the snapshot fails thenot.toMatch(expansion)assertion.Checks
Run in Compose project
lca-diff-tree52; the results are in the #52 handoff comment.Limitations
locator.evaluateAllon the expanded rows crashed the page ("Page crashed") on two runs in a row. The spec reads each row withlocator.all()andgetAttributeinstead. This changes only how the test reads the rows, not what it asserts.🤖 Generated with Claude Code