feat(testing): Improved stabilty

This commit is contained in:
Muhammed Mustafa
2022-10-28 10:35:20 +05:30
parent 5706197382
commit 56cd193626
4 changed files with 21 additions and 11 deletions

View File

@@ -165,6 +165,11 @@ export class ViewSidebarPage extends BasePage {
.locator(".ant-modal-content")
.locator('button:has-text("Submit"):visible')
.click();
await this.waitForResponse({
httpMethodsToMatch: ["POST"],
requestUrlPathToMatch: "/api/v1/db/meta/tables/",
uiAction: submitAction,
});
await this.toastWait({ message: "View created successfully" });
}