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

Rendered DOM access service #120

Closed
egil opened this issue May 5, 2020 · 0 comments
Closed

Rendered DOM access service #120

egil opened this issue May 5, 2020 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed input needed When an issue requires input or suggestions

Comments

@egil
Copy link
Member

egil commented May 5, 2020

To enable test/mock services to intercept a rendered AngleSharp DOM before it is available to the user through the component under test, i.e. rendered component or rendered fragment, we need a service, that the test context in the web project passes a new rendered DOM each time it is generated and when it is replaced/disposed.

The service needs to provide the following functionality to other services:

  • A way for them to invoke code on a rendered DOM when it is first generated
  • A way for them to invoke code on a rendered DOM when it is disposed/replaced

That will allow something like the mock NavigationManager to add event listeners to e.g. document, and listen for on onclick events on anchors elements.

Related

@egil egil added enhancement New feature or request input needed When an issue requires input or suggestions labels May 5, 2020
@egil egil modified the milestones: beta-7, beta-8 May 6, 2020
@egil egil added the help wanted Extra attention is needed label May 28, 2020
@egil egil modified the milestones: beta-8, v1.0.0 Jul 29, 2020
@egil egil removed this from the v1.0.0 milestone Mar 18, 2021
@egil egil closed this as completed May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed input needed When an issue requires input or suggestions
Projects
None yet
Development

No branches or pull requests

1 participant