From 3592faf641597fe244c02c55f399cbb7391d8854 Mon Sep 17 00:00:00 2001 From: davidvader Date: Wed, 7 Feb 2024 13:48:55 -0600 Subject: [PATCH] refactor: fix pipeline expand flakiness --- cypress/integration/pipeline.spec.js | 1 + cypress/support/commands.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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', () => {