Skip to content

Commit

Permalink
added check inside block
Browse files Browse the repository at this point in the history
  • Loading branch information
Aishwarya-U-R committed Dec 26, 2023
1 parent e36ef53 commit 0eed853
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/client/cypress/support/Pages/ApiPage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,11 @@ export class ApiPage {
// });
// }); // to check if Api1 = Api1 when Create Api invoked

if (apiName) this.agHelper.RenameWithInPane(apiName);
if (apiName) {
this.agHelper.RenameWithInPane(apiName);
this.agHelper.GetNAssertContains(this._entityName, apiName);
}
this.agHelper.AssertElementVisibility(this._resourceUrl);
this.agHelper.GetNAssertContains(this._entityName, apiName);
if (apiVerb != "GET") this.SelectAPIVerb(apiVerb);
}

Expand Down

0 comments on commit 0eed853

Please sign in to comment.