Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn CDP into a generic so that mocks can be injected for testing #441

Merged
merged 1 commit into from
Feb 21, 2025

Conversation

karlseguin
Copy link
Contributor

The change look bigger than it is because the CDP struct was changed into a generic (so that mocks could be injected). This added a level of indentation.

Added a couple tests to get the ball rolling

ADD CDP testing helpers (mock Browser, Session, Page and Client). These are
placeholders until tests are added which use them.

Added a couple CDP tests.
@krichprollsch krichprollsch merged commit 908febb into lightpanda-io:main Feb 21, 2025
9 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Feb 21, 2025
@karlseguin karlseguin deleted the cdp_tests branch February 24, 2025 10:54
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants