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 1 year ago committed by GitHub
parent
commit
6134ab1be6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      tests/playwright/pages/Dashboard/Grid/Column/UserOptionColumn.ts

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

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

Loading…
Cancel
Save