Sitelet https://web.archive.org/web/20220518235059/https://github.com/angular/components/issues/20812
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mikzat opened this issue Oct 15, 2020 · 1 comment · Fixed by #20845
Closed

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

mikzat opened this issue Oct 15, 2020 · 1 comment · Fixed by #20845
Assignees
Labels
G has pr P3

Comments

@mikzat
Copy link

@mikzat mikzat commented Oct 15, 2020

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.

@mikzat mikzat added the needs triage label Oct 15, 2020
@jelbourn jelbourn added G P3 needs discussion and removed needs triage labels Oct 15, 2020
@crisbeto crisbeto self-assigned this Oct 16, 2020
@crisbeto crisbeto added has pr needs discussion and removed needs discussion has pr labels Oct 16, 2020
@crisbeto crisbeto assigned crisbeto and unassigned crisbeto Oct 16, 2020
@crisbeto crisbeto removed the needs discussion label Oct 19, 2020
@crisbeto crisbeto added the has pr label Oct 21, 2020
crisbeto added a commit to crisbeto/material2 that referenced this issue Oct 21, 2020
Excludes icons and avatars from the `MatListItemHarnessBase.getText` result.

Fixes angular#20812.
crisbeto added a commit to crisbeto/material2 that referenced this issue Oct 21, 2020
Excludes icons and avatars from the `MatListItemHarnessBase.getText` result.

Fixes angular#20812.
wagnermaciel pushed a commit that referenced this issue Oct 28, 2020
Excludes icons and avatars from the `MatListItemHarnessBase.getText` result.

Fixes #20812.
wagnermaciel pushed a commit that referenced this issue Oct 28, 2020
Excludes icons and avatars from the `MatListItemHarnessBase.getText` result.

Fixes #20812.

(cherry picked from commit dfdd422)
wagnermaciel pushed a commit that referenced this issue Oct 28, 2020
Excludes icons and avatars from the `MatListItemHarnessBase.getText` result.

Fixes #20812.

(cherry picked from commit dfdd422)
@angular-automatic-lock-bot
Copy link

@angular-automatic-lock-bot angular-automatic-lock-bot bot commented Nov 28, 2020

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 Nov 28, 2020
wagnermaciel pushed a commit to wagnermaciel/components that referenced this issue Jan 14, 2021
…r#20845)

Excludes icons and avatars from the `MatListItemHarnessBase.getText` result.

Fixes angular#20812.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
G has pr P3
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants