You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 theKeyNotifier
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.The text was updated successfully, but these errors were encountered: