diff --git a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts index 38531e4d1e..219d03ba2c 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts +++ b/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 }) {