MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / expectScrollTop

Function expectScrollTop

integrations/tests/tests/utils.ts:159–167  ·  view source on GitHub ↗
(
  page: Page,
  scroller: Scroller,
  expected: number
)

Source from the content-addressed store, hash-verified

157
158/** Waits for the scroll offset to settle at the expected value. */
159export async function expectScrollTop(
160 page: Page,
161 scroller: Scroller,
162 expected: number
163) {
164 await expect
165 .poll(() => getScrollTop(page, scroller), { timeout: 2_000 })
166 .toBe(expected);
167}

Calls 1

getScrollTopFunction · 0.85

Tested by

no test coverage detected