Skip to content

feat(table): MatCellHarness should extend ContentContainerComponentHarness #21157

Description

@JoepKockelkorn

Feature Description

MatCellHarness should extend from ContentContainerComponentHarness instead of ComponentHarness so it exposes (at least) the getHarness and getAllHarnesses methods to scope the loading of harnesses.

Use Case

Quite often it is the case that a table cell has more than just text content (like a custom icon component). It would be nice if the MatCellHarness would expose the methods of ContentContainerComponentHarness to load harnesses within the table cell. From the docs I can see that ContentContainerComponentHarness is meant for components that have a ng-content slot, and in a way a table cell is exactly that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: material/testingfeatureLabel used to distinguish feature request from other issues

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions