Browse Source

fix: wait for response in MFE

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/8522/head
Raju Udava 6 months ago
parent
commit
8c8df78960
  1. 6
      tests/playwright/pages/Dashboard/Details/FieldsPage.ts

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

Loading…
Cancel
Save