MCPcopy Create free account
hub / github.com/bvaughn/react-window / read

Function read

integrations/tests/tests/scroll-element.spec.tsx:51–60  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

49 scrollerSelector?: string
50) {
51 const read = () =>
52 page.evaluate(
53 ({ index, scrollerSelector }) => ({
54 position: scrollerSelector
55 ? document.querySelector(scrollerSelector)!.scrollTop
56 : window.scrollY,
57 rendered: document.querySelector(`[data-index="${index}"]`) !== null
58 }),
59 { index, scrollerSelector }
60 );
61
62 await expect
63 .poll(async () => {

Callers 1

waitForScrollEndFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected