Browse Source

fix(test): user field verify options issue

pull/7431/head
Ramesh Mane 6 months ago
parent
commit
49713ef60d
  1. 2
      tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts
  2. 4
      tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts

2
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++;
}

4
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++;
}
}

Loading…
Cancel
Save