Skip to content

Commit

Permalink
test: change intercept to wait
Browse files Browse the repository at this point in the history
  • Loading branch information
shreddedbacon committed Jan 24, 2025
1 parent 3d83e69 commit cfb1905
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cypress/e2e/general/variables.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ describe('Project variables page', () => {
cy.waitForNetworkIdle('@idle', 500);
environment.doAddVariable(name, value);

cy.intercept('POST', Cypress.env('api')).as('addRequest');

cy.wait('@addRequest');
cy.waitForNetworkIdle('@idle', 1000);

cy.log('check if variable was created');
cy.get('.data-table > .data-row').should('contain', name);
Expand All @@ -56,9 +54,7 @@ describe('Project variables page', () => {

environment.doDeleteVariable(name);

cy.intercept('POST', Cypress.env('api')).as('deleteRequest');

cy.wait('@deleteRequest');
cy.waitForNetworkIdle('@idle', 1000);

cy.contains('No Project variables set').should('exist');
});
Expand Down

0 comments on commit cfb1905

Please sign in to comment.