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

Function trigger

packages/react-aria-components/test/ListBox.test.js:1833–1840  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1831 describe('links', function () {
1832 describe.each(['mouse', 'keyboard'])('%s', type => {
1833 let trigger = async item => {
1834 if (type === 'mouse') {
1835 await user.click(item);
1836 } else {
1837 fireEvent.keyDown(item, {key: 'Enter'});
1838 fireEvent.keyUp(item, {key: 'Enter'});
1839 }
1840 };
1841
1842 it('should support links with selectionMode="none"', async function () {
1843 let {getAllByRole} = render(

Callers 1

ListBox.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected