Skip to content

Commit fd02278

Browse files
committed
Ensure listbox closes so add stage button can be operated
1 parent 810ffea commit fd02278

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/e2e/frontend/cypress/tests-ee/applications/pipelines.spec.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,9 @@ describe('FlowFuse - Application - DevOps Pipelines', () => {
174174
cy.get('[data-form="stage-action"] .ff-listbox').click()
175175
cy.get('[data-el="listbox-options"] > .ff-option:contains("Do nothing")').should('not.exist')
176176
cy.get('[data-el="listbox-options"] .ff-option-content.active').should('contain', 'Prompt to select instance snapshot')
177+
cy.get('[data-form="stage-name"] input').click() // click somewhere else to close listbox
177178

178-
cy.get('[data-action="add-stage"]').scrollIntoView()
179+
cy.get('[data-action="add-stage"]').scrollIntoView() // scroll button into view
179180
cy.get('[data-action="add-stage"]').click()
180181

181182
cy.get(`[data-el="pipelines-list"] [data-el="pipeline-row"]:contains("${PIPELINE_NAME}")`).within(() => {

0 commit comments

Comments
 (0)