Skip to content

How to simulate keyboard navigation? #1411

Open
@Bagelwolf

Description

@Bagelwolf

I'm trying to test focus states, which are only triggered via keyboard navigation. Is there a way to simulate a tab or arrow keypress?

Tried seeing if submitting a keycode instead of a string would work; it doesn't.

{ "selector": ".testing-div", "keypress": 9 // JS keycode }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions