-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(cdk-experimental/testing): Add a public stabilize method to TestElement #16847
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
* In most cases it should not be necessary to call this. However, there may be some edge cases | ||
* where it is needed to fully flush animation events. | ||
*/ | ||
stabilize(): Promise<void>; |
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.
Any naming preference? I could also see flush
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.
Maybe whenStable
to match the one on the ComponentFixture
? I don't have a strong preference either.
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.
We chatted and Miles suggested forceStabilize
which I really like because it has a built in discouragement from using when its not necessary
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
* In most cases it should not be necessary to call this. However, there may be some edge cases | ||
* where it is needed to fully flush animation events. | ||
*/ | ||
stabilize(): Promise<void>; |
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.
Maybe whenStable
to match the one on the ComponentFixture
? I don't have a strong preference either.
a70bf21
to
36d7cef
Compare
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 with the forceStabilize
name
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. |
No description provided.