-
-
-
-
-
- {{ title }}
-
-
-
- {{ typeAndStatusText }}
-
-
-
-
+
+
+
+ expanded = !expanded"
+ block
+ variant="tonal"
+ >
+ {{ expanded ? 'See Less' : 'See All' }}
+
+
+
+
.
@close="() => dialog = false"
@success="() => showMenu = false"
:key="dialogKey /* Enables re-render of component each time dialog opened */"
- ref="mutationComponent"
/>
-
+
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()