Skip to content

Conversation

crisbeto
Copy link
Member

Sets up a test harness that covers MatSort and MatSortHeader.

@crisbeto crisbeto added P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent pr: merge safe target: minor This PR is targeted for the next minor release labels Nov 24, 2019
@crisbeto crisbeto requested review from andrewseguin, jelbourn and a team as code owners November 24, 2019 10:20
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Nov 24, 2019
/** Toggles the sort header by clicking on it. Only works if the header is enabled. */
async toggle(): Promise<void> {
return (await this.host()).click();
}
Copy link
Member

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?

Copy link
Member Author

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.

@crisbeto crisbeto force-pushed the COMP-198/sort-harness branch from baa1f2e to 64cb858 Compare December 1, 2019 15:21
Copy link
Member Author

@crisbeto crisbeto left a 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`.
@crisbeto crisbeto force-pushed the COMP-198/sort-harness branch from 64cb858 to fc6c2e6 Compare December 1, 2019 15:43
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Dec 2, 2019
@jelbourn jelbourn merged commit 81294f7 into angular:master Dec 3, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jan 3, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P3 An issue that is relevant to core functions, but does not impede progress. Important, but not urgent target: minor This PR is targeted for the next minor release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants