Skip to content

Add a DOM test environment (happy-dom) for interaction-class web tests #207

Closed

Description

@shuv1337

From the #206 hotfix: the repo has no DOM test env (no jsdom/happy-dom, no @testing-library/react), so render-time invariants are testable via renderToStaticMarkup but genuine interaction bugs (menu typeahead stealing keystrokes, focus traps, portals) are only catchable in live browser passes. Three of the messenger pivot's live-verification findings were in this class. Proposal: add happy-dom + a minimal interaction-test harness for apps/web, then backfill tests for GroupAssignMenu typeahead, overlay Escape/focus-return, and the identity-sheet dirty-draft flows.

Activity

  1. shuv1337 commented on Aug 25, 2026

    @shuv1337
    OwnerAuthor

    Another case for the DOM env: M8's auto-start guard (#219) could only be tested as a pure predicate — a real mount-with-spy for the effect (incl. StrictMode double-invoke) needs jsdom/happy-dom. Third accumulated instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ade:buildADE V1 build issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions