diff --git a/cypress/integration/pipeline.spec.js b/cypress/integration/pipeline.spec.js index 5da0d2265..6890cf707 100644 --- a/cypress/integration/pipeline.spec.js +++ b/cypress/integration/pipeline.spec.js @@ -95,6 +95,7 @@ context('Pipeline', () => { cy.get('[data-test=pipeline-expand-toggle]').click({ force: true, }); + cy.wait('@expand'); }); it('should update path with expand query', () => { diff --git a/cypress/support/commands.js b/cypress/support/commands.js index 283b0aa92..bf4790527 100644 --- a/cypress/support/commands.js +++ b/cypress/support/commands.js @@ -533,7 +533,7 @@ Cypress.Commands.add('stubPipelineExpand', () => { url: '*api/v1/pipelines/*/*/*/expand*', status: 200, response: '@expanded', - }); + }).as('expand'); }); Cypress.Commands.add('stubPipelineExpandErrors', () => {