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

Function trigger

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

Source from the content-addressed store, hash-verified

2230 describe('links', function () {
2231 describe.each(['mouse', 'keyboard'])('%s', type => {
2232 let trigger = async (item, key = 'Enter') => {
2233 if (type === 'mouse') {
2234 await user.click(item);
2235 } else {
2236 fireEvent.keyDown(item, {key});
2237 fireEvent.keyUp(item, {key});
2238 }
2239 };
2240
2241 it('should support links with selectionMode="none"', async function () {
2242 let {getAllByRole} = render(

Callers 1

Table.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected