Browse Source

Merge pull request #7326 from nocodb/fix/user-field-playwright

fix: select default user playwright test fail issue
pull/7330/head
Raju Udava 9 months ago committed by GitHub
parent
commit
6134ab1be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts

8
tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts

@ -57,14 +57,14 @@ export class UserOptionColumnPageObject extends BasePage {
for (const op of optionsToSelect) {
await this.selectOption({ option: op });
}
// Press `Escape` to close the dropdown
await this.rootPage.keyboard.press('Escape');
await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'hidden' });
} else if (!Array.isArray(option)) {
await this.selectOption({ option });
}
// Press `Escape` to close the dropdown
await this.rootPage.keyboard.press('Escape');
await this.rootPage.locator('.nc-dropdown-user-select-cell').waitFor({ state: 'hidden' });
await this.column.save({ isUpdated: true });
}

Loading…
Cancel
Save