From 8c8df789601e9ad7bc226e32e64ddead97f801fb Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Tue, 21 May 2024 20:52:42 +0530 Subject: [PATCH] fix: wait for response in MFE Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- tests/playwright/pages/Dashboard/Details/FieldsPage.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Details/FieldsPage.ts b/tests/playwright/pages/Dashboard/Details/FieldsPage.ts index 0f3946afcb..e26f765313 100644 --- a/tests/playwright/pages/Dashboard/Details/FieldsPage.ts +++ b/tests/playwright/pages/Dashboard/Details/FieldsPage.ts @@ -240,11 +240,11 @@ export class FieldsPage extends BasePage { async saveChanges() { await this.waitForResponse({ uiAction: async () => await this.saveChangesButton.click(), - requestUrlPathToMatch: 'api/v1/db/meta/views/', + requestUrlPathToMatch: 'api/v1/db/meta/tables/', httpMethodsToMatch: ['GET'], - responseJsonMatcher: json => json['list'], + responseJsonMatcher: json => json['hash'], }); - await this.rootPage.waitForTimeout(200); + await this.rootPage.waitForTimeout(1000); } getField({ title }: { title: string }) {