systelab-components-wdio-test
Version:
Widgets to be use in the E2E Tests based in WDIO
12 lines (11 loc) • 464 B
JavaScript
export class GridAttributesService {
static async checkGridCell(grid, rowNumber, columnNumber, expectedText) {
const objectAtRow = await grid.getValuesInRow(rowNumber);
expect(objectAtRow[columnNumber]).toBe(expectedText);
}
static async checkGridRow(grid, rowNumber, expectedTexts) {
for (let i = 0; i < expectedTexts.length; i++) {
await this.checkGridCell(grid, rowNumber, i, expectedTexts[i]);
}
}
}