Skip to content

Wrong key property for Mouse-Events from a specific button #4442

@fjtrujy

Description

@fjtrujy

Subject

guides

Description

Triggering a mouse down from a specific button is using the wrong key.
The documentation says button however the proper value looks to be buttons.

https://github.com/cypress-io/cypress-documentation/blob/114a261f0ad54e19218d21080aa59b42db14f525/source/api/commands/trigger.md#trigger-a-mousedown-from-a-specific-mouse-button

It actually fits with the MouseEvent documentation:
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/buttons

Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions