Skip to content

test: add unit tests for connect-existing mode#52

Merged
freema merged 1 commit intomainfrom
feat/connect-existing-tests
Mar 29, 2026
Merged

test: add unit tests for connect-existing mode#52
freema merged 1 commit intomainfrom
feat/connect-existing-tests

Conversation

@freema
Copy link
Copy Markdown
Collaborator

@freema freema commented Mar 29, 2026

Summary

Tests added

  • BiDi support: getBidi() opens WebSocket, caches connection, subscribe sends correct BiDi commands, error handling
  • Session cleanup: kill() and quit() send DELETE /session before killing geckodriver
  • Resilience: kill() doesn't throw when DELETE /session fails
  • marionetteHost: option correctly passed through FirefoxCore
  • Reconnect: reset() clears driver and context state

Test plan

  • All 390 tests pass (380 existing + 10 new)
  • Lint passes
  • Typecheck passes

Tests cover:
- GeckodriverHttpDriver BiDi: getBidi(), subscribe, caching, error handling
- Session cleanup: kill() and quit() send DELETE /session
- kill() resilience when DELETE fails
- marionetteHost option passthrough
- Reconnect: reset() clears driver state

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@freema freema requested a review from juliandescottes March 29, 2026 14:18
@freema freema merged commit 7673f81 into main Mar 29, 2026
1 check passed
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