@@ -389,7 +389,7 @@ describe('dialog', () => {
389389 }
390390 /> ,
391391 ) ;
392- expect ( document . querySelector ( '.rc-dialog-section ' ) ) . toHaveStyle ( 'background: #1890ff' ) ;
392+ expect ( document . querySelector ( '.rc-dialog-container ' ) ) . toHaveStyle ( 'background: #1890ff' ) ;
393393 } ) ;
394394
395395 describe ( 'focusTriggerAfterClose' , ( ) => {
@@ -597,7 +597,7 @@ describe('dialog', () => {
597597 footer : 'custom-footer' ,
598598 mask : 'custom-mask' ,
599599 wrapper : 'custom-wrapper' ,
600- section : 'custom-section ' ,
600+ container : 'custom-container ' ,
601601 } }
602602 style = { { width : 600 } }
603603 height = { 903 }
@@ -611,7 +611,7 @@ describe('dialog', () => {
611611 expect ( document . querySelector ( '.rc-dialog-header' ) . className ) . toContain ( 'custom-header' ) ;
612612 expect ( document . querySelector ( '.rc-dialog-footer' ) . className ) . toContain ( 'custom-footer' ) ;
613613 expect ( document . querySelector ( '.rc-dialog-mask' ) . className ) . toContain ( 'custom-mask' ) ;
614- expect ( document . querySelector ( '.rc-dialog-section ' ) . className ) . toContain ( 'custom-section ' ) ;
614+ expect ( document . querySelector ( '.rc-dialog-container ' ) . className ) . toContain ( 'custom-container ' ) ;
615615 } ) ;
616616
617617 it ( 'should support styles' , ( ) => {
@@ -626,7 +626,7 @@ describe('dialog', () => {
626626 footer : { background : 'blue' } ,
627627 mask : { background : 'yellow' } ,
628628 wrapper : { background : 'pink' } ,
629- section : { background : 'orange' } ,
629+ container : { background : 'orange' } ,
630630 title : { background : 'orange' } ,
631631 } }
632632 style = { { width : 600 } }
@@ -641,7 +641,7 @@ describe('dialog', () => {
641641 expect ( document . querySelector ( '.rc-dialog-header' ) ) . toHaveStyle ( 'background: red' ) ;
642642 expect ( document . querySelector ( '.rc-dialog-footer' ) ) . toHaveStyle ( 'background: blue' ) ;
643643 expect ( document . querySelector ( '.rc-dialog-mask' ) ) . toHaveStyle ( 'background: yellow' ) ;
644- expect ( document . querySelector ( '.rc-dialog-section ' ) ) . toHaveStyle ( 'background: orange' ) ;
644+ expect ( document . querySelector ( '.rc-dialog-container ' ) ) . toHaveStyle ( 'background: orange' ) ;
645645 expect ( document . querySelector ( '.rc-dialog-title' ) ) . toHaveStyle ( 'background: orange' ) ;
646646 } ) ;
647647
0 commit comments