| 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]]); |