Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(test): User test fail issue due truncated user tooltip blocking click action

Ramesh Mane1a3d4cc7167a
diff --git a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts
index 7ec069522d..e161b2911b 100644
--- a/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts
+++ b/tests/playwright/pages/Dashboard/common/Cell/UserOptionCell.ts
@@ -32,12 +32,12 @@ export class UserOptionCellPageObject extends BasePage {
!(await selectCell.getAttribute('class')).includes('active') &&
(await selectCell.locator('.nc-selected-option').count()) === 0
) {
- await selectCell.hover();
- await selectCell.click();
+ // Use force to avoid blocking element by truncated user tooltip
+ await selectCell.click({ force: true });
}
- await selectCell.hover();
- await selectCell.click();
+ // Use force to avoid blocking element by truncated user tooltip
+ await selectCell.click({ force: true });
await this.rootPage.locator('.nc-dropdown-user-select-cell.active').waitFor({ state: 'visible' });