fix(nc-gui): Fixed test for data sources page and minor UI change

This commit is contained in:
Muhammed Mustafa
2023-10-07 10:08:14 +00:00
parent 64ade56d8f
commit b75bbb99a5
2 changed files with 13 additions and 9 deletions

View File

@@ -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 }) {