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

Function trigger

packages/react-aria-components/test/GridList.test.js:1432–1439  ·  view source on GitHub ↗
(item, key = 'Enter')

Source from the content-addressed store, hash-verified

1430 describe('links', function () {
1431 describe.each(['mouse', 'keyboard'])('%s', type => {
1432 let trigger = async (item, key = 'Enter') => {
1433 if (type === 'mouse') {
1434 await user.click(item);
1435 } else {
1436 fireEvent.keyDown(item, {key});
1437 fireEvent.keyUp(item, {key});
1438 }
1439 };
1440
1441 it('should support links with selectionMode="none"', async function () {
1442 let {getAllByRole} = render(

Callers 1

GridList.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected