Skip to content

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

fix: base role check pw test issues

Ramesh Mane71dfde5e1eab
diff --git a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
index 1134e1b45c..a9860bdc1b 100644
--- a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
+++ b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts
@@ -229,6 +229,7 @@ export class ExpandedFormPage extends BasePage {
// expect(await this.btn_moreActions.count()).toBe(1);
if (await this.btn_moreActions.isVisible()) {
// In large screen, the more actions button will be hidden as copy record url button will be visible inline (outside)
+ await this.btn_moreActions.waitFor();
await this.btn_moreActions.click();
}
diff --git a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
index 04ace08603..5138dd82de 100644
--- a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
+++ b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
@@ -22,15 +22,11 @@ export class SidebarProjectNodeObject extends BasePage {
}
async clickOptions({ baseTitle }: { baseTitle: string }) {
- await this.get({
- baseTitle,
- }).hover();
+ await this.sidebar.baseNode.verifyActiveProject({ baseTitle, open: true });
await this.get({
baseTitle,
- })
- .getByTestId(`nc-sidebar-context-menu`)
- .click();
+ }).click();
}
async verifyTableAddBtn({ baseTitle, visible }: { baseTitle: string; visible: boolean }) {
diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.ts
index f3195c54f6..86a1f9b659 100644
--- a/tests/playwright/pages/Dashboard/TreeView.ts
+++ b/tests/playwright/pages/Dashboard/TreeView.ts
@@ -424,7 +424,6 @@ export class TreeViewPage extends BasePage {
// createNewButton (.nc-home-create-new-btn) is visible only for owner & creator
// context menu is visible for all roles
await expect(this.createNewButton).toHaveCount(count);
- await expect(pjtNode.locator('[data-testid="nc-sidebar-context-menu"]')).toHaveCount(1);
await this.openProject({ title: param.baseTitle, context });