@@ -468,6 +469,7 @@ const isEditBaseModalOpen = computed({
size="small"
class="nc-action-btn cursor-pointer outline-0"
type="text"
+ data-testid="nc-data-sources-view-erd"
@click="baseAction(source.id, DataSourcesSubTab.ERD)"
>
@@ -483,6 +485,7 @@ const isEditBaseModalOpen = computed({
size="small"
type="text"
class="nc-action-btn cursor-pointer outline-0"
+ data-testid="nc-data-sources-view-ui-acl"
@click="baseAction(source.id, DataSourcesSubTab.UIAcl)"
>
@@ -498,6 +501,7 @@ const isEditBaseModalOpen = computed({
v-if="!source.is_meta && !source.is_local"
size="small"
type="text"
+ data-testid="nc-data-sources-view-meta-sync"
class="nc-action-btn cursor-pointer outline-0"
@click="baseAction(source.id, DataSourcesSubTab.Metadata)"
>
@@ -620,15 +624,15 @@ const isEditBaseModalOpen = computed({
}
.ds-table-name {
- @apply col-span-11 items-center capitalize;
+ @apply col-span-9 items-center capitalize;
}
.ds-table-type {
- @apply col-span-3 items-center;
+ @apply col-span-2 items-center;
}
.ds-table-actions {
- @apply col-span-2;
+ @apply col-span-5 flex w-full justify-end;
}
.ds-table-crud {
diff --git a/tests/playwright/pages/Dashboard/ProjectView/DataSourcePage.ts b/tests/playwright/pages/Dashboard/ProjectView/DataSourcePage.ts
index b8ee201419..687b34c2c6 100644
--- a/tests/playwright/pages/Dashboard/ProjectView/DataSourcePage.ts
+++ b/tests/playwright/pages/Dashboard/ProjectView/DataSourcePage.ts
@@ -39,7 +39,7 @@ export class DataSourcePage extends BasePage {
const row = this.get()
.locator('.ds-table-row')
.nth(rowIndex + 1);
- await row.locator('button.nc-action-btn:has-text("Sync Metadata")').click();
+ await row.getByTestId('nc-data-sources-view-meta-sync').click();
}
async openERD({ rowIndex }: { rowIndex: number }) {
@@ -47,7 +47,7 @@ export class DataSourcePage extends BasePage {
const row = this.get()
.locator('.ds-table-row')
.nth(rowIndex + 1);
- await row.locator('button.nc-action-btn:has-text("Relations")').click();
+ await row.getByTestId('nc-data-sources-view-erd').click();
}
async openAudit({ rowIndex }: { rowIndex: number }) {