MCPcopy Create free account
hub / github.com/adobe/react-spectrum / trigger

Function trigger

packages/react-aria-components/test/Tree.test.tsx:1104–1110  ·  view source on GitHub ↗
(item, key = 'Enter')

Source from the content-addressed store, hash-verified

1102 describe('links', function () {
1103 describe.each(['mouse', 'keyboard'])('%s', type => {
1104 let trigger = async (item, key = 'Enter') => {
1105 if (type === 'mouse') {
1106 await user.click(item);
1107 } else {
1108 await user.keyboard(`{${key}}`);
1109 }
1110 };
1111
1112 it('should support links with selectionMode="none"', async () => {
1113 let {getAllByRole} = render(

Callers 1

Tree.test.tsxFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected