Skip to content

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

Closed

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.

Activity

  1. added
    feature
    needs triage
    on Jan 13, 2022
  2. self-assigned this
    on Jan 15, 2022
  3. added
    P3
    and removed
    needs triage
    on Jan 15, 2022
  4. added a commit that references this issue on Jan 15, 2022
    388dc7a
  5. added a commit that references this issue on Jan 18, 2022
    c55524a
  6. angular-automatic-lock-bot commented on Feb 18, 2022

    @angular-automatic-lock-bot

    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.

  7. locked and limited conversation to collaborators on Feb 18, 2022
  8. added a commit that references this issue on Apr 3, 2022
    669ab09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

P3feature

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions