Skip to content

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

fix(pw): add support to pass base title and context in openTable

Ramesh Mane4a210af24cf6
diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.ts
index 1f22e91263..0ee2892d34 100644
--- a/tests/playwright/pages/Dashboard/TreeView.ts
+++ b/tests/playwright/pages/Dashboard/TreeView.ts
@@ -114,12 +114,22 @@ export class TreeViewPage extends BasePage {
mode = 'standard',
networkResponse = false,
mobileMode = false,
+ baseTitle,
+ context,
}: {
title: string;
mode?: string;
networkResponse?: boolean;
mobileMode?: boolean;
+ baseTitle?: string;
+ context?: NcContext;
}) {
+ await this.dashboard.leftSidebar.verifyBaseListOpen(!!baseTitle);
+
+ if (baseTitle && context) {
+ await this.dashboard.treeView.openProject({ title, context });
+ }
+
if (mobileMode) {
await this.rootPage.locator('.h-full > div > .nc-sidebar-left-toggle-icon').click();
}