Skip to content

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

test(nc-gui): Base Collaboration test fail issue

Ramesh Mane72e26bcea820
diff --git a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
index c0a70e9826..9c998b5d17 100644
--- a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
+++ b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
@@ -34,6 +34,8 @@ export class SidebarProjectNodeObject extends BasePage {
}
async verifyTableAddBtn({ baseTitle, visible }: { baseTitle: string; visible: boolean }) {
+ await this.sidebar.dashboard.leftSidebar.verifyBaseListOpen(true);
+
await this.get({
baseTitle,
}).waitFor({ state: 'visible' });
diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.ts
index 48d67d0888..1f22e91263 100644
--- a/tests/playwright/pages/Dashboard/TreeView.ts
+++ b/tests/playwright/pages/Dashboard/TreeView.ts
@@ -354,6 +354,7 @@ export class TreeViewPage extends BasePage {
param.baseTitle = param.baseTitle ?? context.base.title;
const count = param.role.toLowerCase() === 'creator' || param.role.toLowerCase() === 'owner' ? 1 : 0;
+ await this.dashboard.leftSidebar.verifyBaseListOpen(true);
const pjtNode = await this.getProject({ title: param.baseTitle });
await pjtNode.hover();
@@ -362,6 +363,8 @@ export class TreeViewPage extends BasePage {
await expect(pjtNode.locator('[data-testid="nc-sidebar-add-base-entity"]')).toHaveCount(count);
await expect(pjtNode.locator('[data-testid="nc-sidebar-context-menu"]')).toHaveCount(1);
+ await this.openProject({ title: param.baseTitle, context });
+
// table context menu
await this.dashboard.sidebar.tableNode.verifyTableOptions({
tableTitle: param.tableTitle,