systelab/systelab-components-test

Check row in grid

Closed this issue · 0 comments

The following code is repeated several times in the e2e test and it must be here at the shared lib, to be used by the projects.

async function checkGridRow(grid: Grid, rowNumber: number, expectedText: string, fieldNumberToCheck: number) {
const objectAtRow = await grid.getValuesInRow(rowNumber);
await expect(objectAtRow[fieldNumberToCheck]).toEqual(expectedText);