MCPcopy
hub / github.com/Comcast/react-data-grid / testScrollIntoView

Function testScrollIntoView

test/browser/column/colSpan.test.ts:177–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 await userEvent.click(getCellsAtRowIndex(10)[23]); // last visible cell (1920/80)
176 const spy = vi.spyOn(window.HTMLElement.prototype, 'scrollIntoView');
177 const testScrollIntoView = () => {
178 expect(spy).toHaveBeenCalled();
179 spy.mockClear();
180 };
181 await navigate(3);
182 testScrollIntoView();
183 await navigate(1);

Callers 1

colSpan.test.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected