diff --git a/src/components/cylc/commandMenu/Menu.vue b/src/components/cylc/commandMenu/Menu.vue index b84a19721..824bae1c9 100644 --- a/src/components/cylc/commandMenu/Menu.vue +++ b/src/components/cylc/commandMenu/Menu.vue @@ -16,85 +16,83 @@ along with this program. If not, see . --> diff --git a/tests/e2e/specs/menu.cy.js b/tests/e2e/specs/menu.cy.js index af8de7579..46b9ee08d 100644 --- a/tests/e2e/specs/menu.cy.js +++ b/tests/e2e/specs/menu.cy.js @@ -113,7 +113,14 @@ describe('Command Menu component', () => { .click() .get('.c-mutation-menu') .should('be.visible') - // Should close when clicking on task mutation + // Should not close when clicking on dialog opened from menu + cy.get('.c-mutation-menu-item:not([aria-disabled]) [data-cy=mutation-edit]:first') + .click() + .get('.c-mutation-dialog [data-cy=cancel]') + .click() + .get('.c-mutation-menu') + .should('be.visible') + // Should close when clicking on task mutation without opening a dialog cy.get('.c-mutation-menu-list') .find('.c-mutation-menu-item:not([aria-disabled]):first') .click()