fix: shared base issue

Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
mertmit
2026-01-10 15:42:14 +03:00
parent 73830238d2
commit 9e7e902121
2 changed files with 5 additions and 7 deletions

View File

@@ -16,9 +16,11 @@ watch(
(viewId) => {
/** wait until table list loads since meta load requires table list **/
until(tables)
.toMatch((tables) => tables.length > 0)
.toMatch((tables) => {
return tables.length > 0
})
.then(() => {
getMeta(route.params.baseId as string, viewId as string, undefined, undefined, undefined, true)
getMeta(baseStore.baseId as string, viewId as string, undefined, undefined, undefined, true)
})
},
{ immediate: true },

View File

@@ -241,11 +241,7 @@ export class ExpandedFormPage extends BasePage {
await expect(this.rootPage.getByTestId('nc-expanded-form-duplicate')).toBeVisible();
await expect(this.rootPage.getByTestId('nc-expanded-form-delete')).toBeVisible();
} else {
if (!isEE()) {
await expect(this.rootPage.getByTestId('nc-expanded-form-reload')).toBeVisible();
} else {
await expect(this.rootPage.getByTestId('nc-expanded-form-reload')).toHaveCount(0);
}
await expect(this.rootPage.getByTestId('nc-expanded-form-reload')).toHaveCount(0);
await expect(this.rootPage.getByTestId('nc-expanded-form-duplicate')).toHaveCount(0);
await expect(this.rootPage.getByTestId('nc-expanded-form-delete')).toHaveCount(0);
}