Skip to content

Commit 40eba6e

Browse files
authored
Merge pull request #9695 from asirvadAbrahamVarghese/zone-form-cypress-refactor
Add explicit status code assertion for Add Zone API
2 parents 6ea6671 + 198c889 commit 40eba6e

File tree

1 file changed

+3
-0
lines changed
  • cypress/e2e/ui/Settings/Application-Settings

1 file changed

+3
-0
lines changed

cypress/e2e/ui/Settings/Application-Settings/zone.cy.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ function addZone() {
7575
})
7676
.should('be.enabled')
7777
.click(),
78+
onApiResponse: (interception) => {
79+
expect(interception.response.statusCode).to.equal(200);
80+
},
7881
});
7982
return cy.then(() => {
8083
return `Zone: ${INITIAL_ZONE_DESCRIPTION}`;

0 commit comments

Comments
 (0)