Browse Source

fix(test): pw user field test fail issue

pull/7431/head
Ramesh Mane 11 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'); const locator = this.cell.get({ index, columnHeader }).locator('.ant-tag');
await locator.waitFor({ state: 'visible' }); await locator.waitFor({ state: 'visible' });
const text = await locator.allInnerTexts(); return expect(locator).toContainText(option);
return expect(text).toContain(option);
} }
async verifyNoOptionsSelected({ index, columnHeader }: { index: number; columnHeader: string }) { async verifyNoOptionsSelected({ index, columnHeader }: { index: number; columnHeader: string }) {

Loading…
Cancel
Save