diff --git a/tests/playwright/pages/Dashboard/BulkUpdate/index.ts b/tests/playwright/pages/Dashboard/BulkUpdate/index.ts index b271581721..f48865a894 100644 --- a/tests/playwright/pages/Dashboard/BulkUpdate/index.ts +++ b/tests/playwright/pages/Dashboard/BulkUpdate/index.ts @@ -181,7 +181,7 @@ export class BulkUpdatePage extends BasePage { } else { await this.waitForResponse({ uiAction: saveRowAction, - requestUrlPathToMatch: 'api/v1/data/noco/', + requestUrlPathToMatch: 'api/v1/db/data/noco/', httpMethodsToMatch: ['GET'], responseJsonMatcher: json => json['pageInfo'], }); diff --git a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts index d875a8e014..bcc92d406b 100644 --- a/tests/playwright/pages/Dashboard/ExpandedForm/index.ts +++ b/tests/playwright/pages/Dashboard/ExpandedForm/index.ts @@ -113,14 +113,14 @@ export class ExpandedFormPage extends BasePage { if (waitForRowsData) { await this.waitForResponse({ uiAction: saveRowAction, - requestUrlPathToMatch: 'api/v1/data/noco/', + requestUrlPathToMatch: 'api/v1/db/data/noco/', httpMethodsToMatch: ['GET'], responseJsonMatcher: json => json['pageInfo'], }); } else { await this.waitForResponse({ uiAction: saveRowAction, - requestUrlPathToMatch: 'api/v1/data/noco/', + requestUrlPathToMatch: 'api/v1/db/data/noco/', httpMethodsToMatch: ['POST'], }); } diff --git a/tests/playwright/pages/Dashboard/Grid/Column/index.ts b/tests/playwright/pages/Dashboard/Grid/Column/index.ts index 8568596554..e8741556ed 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/index.ts @@ -347,7 +347,7 @@ export class ColumnPageObject extends BasePage { async save({ isUpdated }: { isUpdated?: boolean } = {}) { await this.waitForResponse({ uiAction: async () => await this.get().locator('button:has-text("Save")').click(), - requestUrlPathToMatch: 'api/v1/data/noco/', + requestUrlPathToMatch: 'api/v1/db/data/noco/', httpMethodsToMatch: ['GET'], responseJsonMatcher: json => json['pageInfo'], }); diff --git a/tests/playwright/pages/Dashboard/Grid/index.ts b/tests/playwright/pages/Dashboard/Grid/index.ts index 86341c4e2e..901c852c92 100644 --- a/tests/playwright/pages/Dashboard/Grid/index.ts +++ b/tests/playwright/pages/Dashboard/Grid/index.ts @@ -134,7 +134,7 @@ export class GridPage extends BasePage { if (networkValidation) { await this.waitForResponse({ uiAction: clickOnColumnHeaderToSave, - requestUrlPathToMatch: 'api/v1/data/noco', + requestUrlPathToMatch: 'api/v1/db/data/noco', httpMethodsToMatch: ['POST'], // numerical types are returned in number format from the server responseJsonMatcher: resJson => String(resJson?.[columnHeader]) === String(rowValue), @@ -166,7 +166,7 @@ export class GridPage extends BasePage { if (networkValidation) { await this.waitForResponse({ uiAction: clickOnColumnHeaderToSave, - requestUrlPathToMatch: 'api/v1/data/noco', + requestUrlPathToMatch: 'api/v1/db/data/noco', httpMethodsToMatch: [ 'PATCH', // since edit row on an empty row will emit POST request diff --git a/tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts b/tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts index 366faa6844..363a71a2e5 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/RatingCell.ts @@ -19,7 +19,7 @@ export class RatingCellPageObject extends BasePage { await this.waitForResponse({ uiAction: async () => await this.get({ index, columnHeader }).locator('.ant-rate-star > div').nth(rating).click(), httpMethodsToMatch: ['POST', 'PATCH'], - requestUrlPathToMatch: 'api/v1/data/noco/', + requestUrlPathToMatch: 'api/v1/db/data/noco/', }); } diff --git a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts index 4213c6430f..8ce4a2f27e 100644 --- a/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts +++ b/tests/playwright/pages/Dashboard/common/Cell/SelectOptionCell.ts @@ -159,7 +159,7 @@ export class SelectOptionCellPageObject extends BasePage { const saveRowAction = () => selectCell.locator('.ant-select-selection-search-input').press('Enter'); await this.waitForResponse({ uiAction: saveRowAction, - requestUrlPathToMatch: 'api/v1/data/noco/', + requestUrlPathToMatch: 'api/v1/db/data/noco/', httpMethodsToMatch: ['PATCH'], responseJsonMatcher: resJson => String(resJson?.[columnHeader]).includes(String(option)), });