Skip to content

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

fix(pw): share base test update

Ramesh Manecedb124dde2d
diff --git a/tests/playwright/pages/Dashboard/TreeView.ts b/tests/playwright/pages/Dashboard/TreeView.ts
index 1c548c2813..3e5af15644 100644
--- a/tests/playwright/pages/Dashboard/TreeView.ts
+++ b/tests/playwright/pages/Dashboard/TreeView.ts
@@ -370,11 +370,12 @@ 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();
if (param.mode !== 'shareBase') {
+ await this.dashboard.leftSidebar.verifyBaseListOpen(true);
+ const pjtNode = await this.getProject({ title: param.baseTitle });
+ await pjtNode.hover();
+
// add new table button & context menu is visible only for owner & creator
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);
diff --git a/tests/playwright/tests/db/features/baseShare.spec.ts b/tests/playwright/tests/db/features/baseShare.spec.ts
index 21fabc9d5b..bece8d5dbe 100644
--- a/tests/playwright/tests/db/features/baseShare.spec.ts
+++ b/tests/playwright/tests/db/features/baseShare.spec.ts
@@ -64,7 +64,7 @@ test.describe('Shared base', () => {
test('#1', async () => {
let url = '';
// share button visible only if a table is opened
- await dashboard.treeView.openTable({ title: 'Country' });
+ await dashboard.treeView.openTable({ title: 'Country', baseTitle: context.base.title });
// if (!isEE()) {
// url = await dashboard.grid.topbar.getSharedBaseUrl({ role: 'editor', enableSharedBase: true });
//