-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
In the UI Unit Test base class, there's the fireShortcut
method that can be used to simulate a keyboard shortcut performed on the browser.
However, the method is meant to work with shortcuts attached to the UI (or the current modal component) created with the Shortcuts
API, and it does not work with key down listener attached to a component through the KeyNotifier
interface methods.
To trigger this kind of listeners, it would be good to add a similar fireShortcut()
method on the base tester class (ComponentTester
).
The implementation should just use ShortcutsKt._fireShortcut()
providing the encapsulated component, after checking the component usability.
HerbertsVaadin, sissbruecker and jorgheymansCopilot
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
🅿️Parking lot
Status
Maybe