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

Function example

packages/react-aria-components/test/GridList.test.js:2283–2289  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2281 it('should not report focus changes when a focused item rerenders', async () => {
2282 let onFocusChange = jest.fn();
2283 let example = label => (
2284 <GridList aria-label="Test">
2285 <GridListItem id="cat" onFocusChange={onFocusChange}>
2286 {label}
2287 </GridListItem>
2288 </GridList>
2289 );
2290 let {rerender, getByRole} = render(example('Cat'));
2291 await user.tab();
2292 expect(onFocusChange.mock.calls).toEqual([[true]]);

Callers 1

GridList.test.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected