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

Function testCount

test/browser/utils.tsx:134–136  ·  view source on GitHub ↗
(locator: Locator, expectedCount: number)

Source from the content-addressed store, hash-verified

132}
133
134export function testCount(locator: Locator, expectedCount: number) {
135 return expect.poll(() => locator.elements()).toHaveLength(expectedCount);
136}
137
138export function testRowCount(expectedLength: number) {
139 return testCount(getRowsNew(), expectedLength);

Callers 8

testHeaderCellsContentFunction · 0.90
runFunction · 0.90
renderers.test.tsxFile · 0.90
grouping.test.tsFile · 0.90
testRowCountFunction · 0.85

Calls

no outgoing calls

Tested by 2

testHeaderCellsContentFunction · 0.72
runFunction · 0.72