Browse Source

fix(test): pw user field test fail issue

pull/7431/head
Ramesh Mane 10 months ago
parent
commit
1279292d32
  1. 3
      tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts

3
tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts

@ -101,8 +101,7 @@ export class UserOptionCellPageObject extends BasePage {
const locator = this.cell.get({ index, columnHeader }).locator('.ant-tag');
await locator.waitFor({ state: 'visible' });
const text = await locator.allInnerTexts();
return expect(text).toContain(option);
return expect(locator).toContainText(option);
}
async verifyNoOptionsSelected({ index, columnHeader }: { index: number; columnHeader: string }) {

Loading…
Cancel
Save