feat(testing): Improvements with page objects

This commit is contained in:
Muhammed Mustafa
2022-10-06 16:37:33 +05:30
parent 6998c3e6c7
commit bdc3aaed6a
5 changed files with 6 additions and 3 deletions

View File

@@ -20,6 +20,8 @@ export class SelectOptionCellPageObject {
if(multiSelect) await this.cell.get({index, columnHeader}).click();
await this.cell.page.locator(`.nc-dropdown-single-select-cell`).nth(index).waitFor({state: 'hidden'});
// todo: Remove this wait. Should be solved by adding pw-data-attribute with cell info to the a-select-option of the cell
await this.cell.page.waitForTimeout(200);
}
async clear({index, columnHeader, multiSelect}: {index: number, columnHeader: string, multiSelect?: boolean}) {