Skip to content

bug(MatNavListItemHarness): getText() needs to exclude icons #20812

Closed
@mikzat

Description

@mikzat

MatNavListItemHarness function getText() is including text for icons inside the mat-list-item:

<a mat-list-item>
  <mat-icon matListIcon>help</mat-icon>
  <p>Help</p>
</a>

Using getText() for the above case currently outputs 'helpHelp'. There should be some mechanism of getting the text without the icon.

Metadata

Metadata

Assignees

Labels

GThis is is related to a Google internal issueP3An issue that is relevant to core functions, but does not impede progress. Important, but not urgent

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions