-
Notifications
You must be signed in to change notification settings - Fork 6.8k
test(material-experimental): harness tests leaking overlay containers #17007
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
Conversation
Fixes the `cdk-overlay-container` nodes not being cleaned up between test harness tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I recently made a change in the dialog harness tests to clear out the dialogs, but I guess the idea is to also remove the actual empty overlay container right?
Yeah the container is still there. Currently there will always be one, because we have some logic that clears all other containers, but once #17006 lands we'll leak one container per test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Related: now that we're going to have /testing
paths for our subpackages, I'm considering adding something like CdkTestingModule
and MatTestingModule
that would ideally do things like clean up these elements in an afterEach
Fixes a failure that wasn't caught by the CI in angular#17007 for some reason. We were only injecting the overlay container for one kind of test harness.
Fixes a failure that wasn't caught by the CI in #17007 for some reason. We were only injecting the overlay container for one kind of test harness.
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Fixes the
cdk-overlay-container
nodes not being cleaned up between test harness tests.