UNPKG

systelab-components-wdio-test

Version:
12 lines (11 loc) 464 B
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]); } } }