Browse Source

test: select options updated dom element handling

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
temp-5c4a2f8331a3f36534606c6dcdb34a67f95aea6d
Raju Udava 1 year ago
parent
commit
24186d1f4c
  1. 5
      tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts

5
tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts

@ -85,9 +85,8 @@ export class SelectOptionCellPageObject extends BasePage {
if (multiSelect) {
return await expect(this.cell.get({ index, columnHeader })).toContainText(option, { useInnerText: true });
}
return await expect(
this.cell.get({ index, columnHeader }).locator('.ant-select-selection-item > .ant-tag')
).toHaveText(option, { useInnerText: true });
const text = await (await this.cell.get({ index, columnHeader }).locator('.ant-tag')).allInnerTexts();
return expect(text).toContain(option);
}
async verifyNoOptionsSelected({ index, columnHeader }: { index: number; columnHeader: string }) {

Loading…
Cancel
Save