Skip to content

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

fix: pw test fail issue

Ramesh Mane322900896e6c
diff --git a/packages/nc-gui/components/workspace/BaseListModal/index.vue b/packages/nc-gui/components/workspace/BaseListModal/index.vue
index 8f1efbdeae..3617f48f3a 100644
--- a/packages/nc-gui/components/workspace/BaseListModal/index.vue
+++ b/packages/nc-gui/components/workspace/BaseListModal/index.vue
@@ -222,6 +222,7 @@ const hasNoSearchResults = computed(() => {
inline
transition
class="!bg-opacity-15"
+ data-testid="nc-base-list-loading"
>
<div class="flex flex-col items-center justify-center h-full w-full">
<a-spin size="large" />
diff --git a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
index 772c8b6ca2..ab016e3531 100644
--- a/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
+++ b/tests/playwright/pages/Dashboard/Sidebar/ProjectNode/index.ts
@@ -29,6 +29,13 @@ export class SidebarProjectNodeObject extends BasePage {
await this.sidebar.baseNode.verifyActiveProject({ baseTitle, open: true });
await this.getMenuTrigger({ baseTitle }).waitFor();
+
+ await this.getMenuTrigger({ baseTitle }).hover({
+ position: {
+ x: 2,
+ y: 2,
+ },
+ });
await this.getMenuTrigger({ baseTitle }).click();
}
@@ -144,7 +151,11 @@ export class SidebarProjectNodeObject extends BasePage {
const isActiveProject =
(await ncProjectHeader.getAttribute('data-testid')) === `nc-sidebar-base-title-${baseTitle}`;
- if (isActiveProject) return true;
+ if (isActiveProject) {
+ await ncProjectHeader.hover({ force: true, position: { x: 2, y: 2 } });
+
+ return true;
+ }
}
if (!open) return false;
@@ -157,6 +168,8 @@ export class SidebarProjectNodeObject extends BasePage {
await this.sidebar.dashboard.leftSidebar.active_base.waitFor({ state: 'visible' });
+ await this.sidebar.dashboard.leftSidebar.active_base.hover({ force: true, position: { x: 2, y: 2 } });
+
return true;
}
}
diff --git a/tests/playwright/pages/Dashboard/common/BaseListModal/index.ts b/tests/playwright/pages/Dashboard/common/BaseListModal/index.ts
index 4c60bdb56b..052e79dbab 100644
--- a/tests/playwright/pages/Dashboard/common/BaseListModal/index.ts
+++ b/tests/playwright/pages/Dashboard/common/BaseListModal/index.ts
@@ -25,6 +25,8 @@ export class BaseListModalPage extends BasePage {
await this.modal.waitFor({ state: 'visible' });
// Wait for modal animation to complete
await this.rootPage.waitForTimeout(300);
+
+ await this.rootPage.getByTestId('nc-base-list-loading').waitFor({ state: 'hidden' });
}
async waitForClose() {