-
Notifications
You must be signed in to change notification settings - Fork 6.8k
feat(sort): add test harness #17802
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
feat(sort): add test harness #17802
Conversation
/** Toggles the sort header by clicking on it. Only works if the header is enabled. */ | ||
async toggle(): Promise<void> { | ||
return (await this.host()).click(); | ||
} |
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 wonder here whether toggle
is right. To me, toggle
means switch between one of two states, but the sort-header potentially has three states. How do you feel about changing this to just click
?
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.
Changed. I called it toggle
initially because click
doesn't really indicate what will happen when the element is clicked.
baa1f2e
to
64cb858
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.
I've reworked it based on the feedback @jelbourn.
Sets up a test harness that covers `MatSort` and `MatSortHeader`.
64cb858
to
fc6c2e6
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
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. |
Sets up a test harness that covers
MatSort
andMatSortHeader
.