Skip to content

Commit

Permalink
add intercept logic in yaml-editor test
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonas Berhe authored and Yonas Berhe committed Apr 5, 2024
1 parent e603016 commit 9003c1d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cypress/e2e/tests/components/yaml-editor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ describe('Yaml Editor', () => {

// Create a new deployment resource
deploymentsCreatePage.goTo();
cy.intercept('POST', '/v1/apps.deployments').as('createDeployment');
deploymentsCreatePage.createWithUI(name, containerImage, namespace);
cy.wait('@createDeployment').its('response.statusCode').should('eq', 201);
});

describe('Edit mode', () => {
Expand Down

0 comments on commit 9003c1d

Please sign in to comment.