Skip to content

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

fix(pw): verify personal view test fail issue

Ramesh Mane7f5eca6c29d4
diff --git a/tests/playwright/pages/Dashboard/ViewSidebar/index.ts b/tests/playwright/pages/Dashboard/ViewSidebar/index.ts
index fc7febbd61..8e391d2b41 100644
--- a/tests/playwright/pages/Dashboard/ViewSidebar/index.ts
+++ b/tests/playwright/pages/Dashboard/ViewSidebar/index.ts
@@ -90,7 +90,27 @@ export class ViewSidebarPage extends BasePage {
}
// Todo: Make selection better
- async verifyView({ title, index }: { title: string; index: number }) {
+ async verifyView({
+ title,
+ index,
+ baseTitle,
+ sourceTitle,
+ }: {
+ title: string;
+ index: number;
+ baseTitle?: string;
+ sourceTitle?: string;
+ }) {
+ await this.dashboard.leftSidebar.verifyBaseListOpen(!!baseTitle);
+
+ if (baseTitle) {
+ await this.dashboard.sidebar.baseNode.verifyActiveProject({ baseTitle, open: true });
+ }
+
+ if (sourceTitle) {
+ await this.dashboard.treeView.openSource({ title: sourceTitle });
+ }
+
// flicker while page loading
await this.get()
.locator('[data-testid="view-item"]')