diff --git a/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts b/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts index a123823f3e..40cf66da86 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts @@ -111,7 +111,7 @@ export class UserOptionColumnPageObject extends BasePage { let counter = 0; for (const option of options) { - await expect(defaultValueSelector.locator(`.nc-selected-option`).nth(counter)).toHaveText(option); + await expect(defaultValueSelector.locator(`.nc-selected-option`).nth(counter)).toContainText(option); counter++; } diff --git a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts index 56e84ab968..5899ed8029 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts @@ -134,7 +134,7 @@ export class UserOptionCellPageObject extends BasePage { let counter = 0; for (const option of options) { - await expect(this.rootPage.locator(`div.ant-select-item-option`).nth(counter)).toHaveText(option); + await expect(this.rootPage.locator(`div.ant-select-item-option`).nth(counter)).toContainText(option); counter++; } await this.rootPage.keyboard.press('Escape'); @@ -155,7 +155,7 @@ export class UserOptionCellPageObject extends BasePage { let counter = 0; for (const option of options) { - await expect(selectCell.locator(`.nc-selected-option`).nth(counter)).toHaveText(option); + await expect(selectCell.locator(`.nc-selected-option`).nth(counter)).toContainText(option); counter++; } }