Skip to content

Commit

Permalink
refactor: fix pipeline expand flakiness
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Feb 7, 2024
1 parent e5814fe commit 3592faf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cypress/integration/pipeline.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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', () => {
Expand Down
2 changes: 1 addition & 1 deletion cypress/support/commands.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ Cypress.Commands.add('stubPipelineExpand', () => {
url: '*api/v1/pipelines/*/*/*/expand*',
status: 200,
response: '@expanded',
});
}).as('expand');
});

Cypress.Commands.add('stubPipelineExpandErrors', () => {
Expand Down

0 comments on commit 3592faf

Please sign in to comment.