File tree Expand file tree Collapse file tree
packages/ui-components/src/components/Modal Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -369,7 +369,7 @@ describe("Modal", () => {
369369 expect ( mockOnConfirm ) . not . toHaveBeenCalled ( )
370370 } )
371371
372- test ( "renders a disabled cancel action button and ensures onCancel is not triggered" , async ( ) => {
372+ test ( "renders a disabled cancel action button, ensures onCancel isn't triggered and that the close button is disabled " , async ( ) => {
373373 await waitFor ( ( ) =>
374374 render (
375375 < PortalProvider >
@@ -388,7 +388,7 @@ describe("Modal", () => {
388388 expect ( mockOnCancel ) . not . toHaveBeenCalled ( )
389389 } )
390390
391- test ( "renders a modal with no disabled close button if disableCloseButton is true" , async ( ) => {
391+ test ( "renders a modal with a disabled close button if disableCloseButton is true" , async ( ) => {
392392 await waitFor ( ( ) =>
393393 render (
394394 < PortalProvider >
You can’t perform that action at this time.
0 commit comments