Browse Source

feat(playwright): add verifyDateCell

pull/4593/head
Wing-Kam Wong 2 years ago
parent
commit
eab412504a
  1. 16
      tests/playwright/pages/Dashboard/common/Cell/index.ts

16
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -101,6 +101,22 @@ export class CellPageObject extends BasePage {
}
}
async verifyDateCell({ index, columnHeader, value }: { index: number; columnHeader: string; value: string }) {
const _verify = async expectedValue => {
await expect
.poll(async () => {
const cell = await this.get({
index,
columnHeader,
}).locator('input');
return await cell.getAttribute('title');
})
.toEqual(expectedValue);
};
await _verify(value);
}
async verifyQrCodeCell({
index,
columnHeader,

Loading…
Cancel
Save