feat(material/testing): MatChipHarness getAvatar - #22348
Conversation
4132d43 to
fa489fc
Compare
| return new HarnessPredicate(MatChipHarness, options) | ||
| .addOption( | ||
| 'hasAvatar', | ||
| options.hasAvatar, |
There was a problem hiding this comment.
Is it that common of a use case to be able to query only chips that have an avatar? We don't have anything similar for the other icons that can be projected (e.g. the remove icon).
There was a problem hiding this comment.
it's probably not that common. removed
| /** | ||
| * Whether the chip has an avatar | ||
| */ | ||
| async hasAvatar() { |
There was a problem hiding this comment.
I don't think that we need this since it can be inferred from getAvatar.
There was a problem hiding this comment.
right, removed
fa489fc to
b6614c7
Compare
crisbeto
left a comment
There was a problem hiding this comment.
The changes look good, but the API goldens need to be updated. You can run yarn approve-api chips/testing to do it.
b6614c7 to
6ec8ed9
Compare
6ec8ed9 to
373e5d3
Compare
|
rebased after conflicts |
|
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. |
MatChipAvatarHarnessgetAvatarmethod toMatChipHarnessMatChipHarnessextendContentContainerComponentHarnessMatIconHarnessinside a chip