Skip to content

test: add deterministic component interaction harness - #30

Open
ddebowczyk wants to merge 1 commit into
Jeshwin:mainfrom
ddebowczyk:test/add-component-interaction-harness
Open

test: add deterministic component interaction harness#30
ddebowczyk wants to merge 1 commit into
Jeshwin:mainfrom
ddebowczyk:test/add-component-interaction-harness

Conversation

@ddebowczyk

Copy link
Copy Markdown

Summary

  • add React Testing Library and user-event with a small shared Layman provider harness
  • cover empty, tab selection, close, maximize/restore, and floating resize interactions
  • add accessible names for icon-only controls used by the tests

Validation

  • npx vitest run tests/Layman.interaction.test.tsx --pool=threads --maxWorkers=1
  • NODE_OPTIONS="--localstorage-file=/tmp/react-layman-vitest-localstorage" npm test (75 passed)
  • npm run lint -- --max-warnings=0
  • strict TypeScript check of the two new test files
  • npm run build:lib

Dependency

This PR follows #29 for Node 26 portable localStorage test setup. On upstream main, plain npm test has the pre-existing persistence-suite failure; this PR does not duplicate that setup change.

@ddebowczyk
ddebowczyk force-pushed the test/add-component-interaction-harness branch 2 times, most recently from 5a263ef to 3ad3f15 Compare August 12, 2026 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant