Skip to content

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

fix(pw): verifyActiveProject test fail issue

Ramesh Mane483a8fb70a11
diff --git a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
index cb23b74446..84bc6e18a7 100644
--- a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
+++ b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
@@ -163,6 +163,8 @@ export class SidebarProjectNodeObject extends BasePage {
}
async verifyActiveProject({ baseTitle, open = false }: { baseTitle: string; open?: boolean }) {
+ if (!(await this.sidebar.dashboard.leftSidebar.isMiniSidebarVisible())) return true;
+
const isBaseListSidebar = await this.sidebar.dashboard.leftSidebar.verifyBaseListOpen(false);
// If base home page sidebar is open then verify base title is same as baseTitle
if (!isBaseListSidebar) {