forked from retoor/devplacepy
DeviiTerminal bound [data-devii-open] click listeners only after the async /devii/session fetch resolved, silently dropping early clicks. Switch to a single delegated document listener bound in the constructor, matching the ModalManager/dp-lightbox pattern. The steal-confirm and comment-vote e2e tests asserted DOM state right after a click with no wait for the triggering POST to land, racing the server under CI load. Wrap those clicks in page.expect_response. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>