Skip to content

feat(MatListItem): Add isDisabled method to MatListItemHarness #24200

Closed
@sikelerd

Description

@sikelerd

Feature Description

MatListItem supports the Input disabled but there is no easy way to test this. You have to know about the internals to test it.

expect(await (await matListItemHarness.host()).getCssValue('pointer-events')).toBe('none')

It would be nice to have a dedicated method like

expect(await matListItemHarness.isDisabled()).toBeTruthy()

Use Case

This feature improves the test usability and hides implementation details.

Metadata

Metadata

Assignees

Labels

P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentfeatureThis issue represents a new feature or feature request rather than a bug or bug fix

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions