@@ -389,7 +389,7 @@ describe('dialog', () => {
389
389
}
390
390
/> ,
391
391
) ;
392
- expect ( document . querySelector ( '.rc-dialog-section ' ) ) . toHaveStyle ( 'background: #1890ff' ) ;
392
+ expect ( document . querySelector ( '.rc-dialog-container ' ) ) . toHaveStyle ( 'background: #1890ff' ) ;
393
393
} ) ;
394
394
395
395
describe ( 'focusTriggerAfterClose' , ( ) => {
@@ -597,7 +597,7 @@ describe('dialog', () => {
597
597
footer : 'custom-footer' ,
598
598
mask : 'custom-mask' ,
599
599
wrapper : 'custom-wrapper' ,
600
- section : 'custom-section ' ,
600
+ container : 'custom-container ' ,
601
601
} }
602
602
style = { { width : 600 } }
603
603
height = { 903 }
@@ -611,7 +611,7 @@ describe('dialog', () => {
611
611
expect ( document . querySelector ( '.rc-dialog-header' ) . className ) . toContain ( 'custom-header' ) ;
612
612
expect ( document . querySelector ( '.rc-dialog-footer' ) . className ) . toContain ( 'custom-footer' ) ;
613
613
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 ' ) ;
615
615
} ) ;
616
616
617
617
it ( 'should support styles' , ( ) => {
@@ -626,7 +626,7 @@ describe('dialog', () => {
626
626
footer : { background : 'blue' } ,
627
627
mask : { background : 'yellow' } ,
628
628
wrapper : { background : 'pink' } ,
629
- section : { background : 'orange' } ,
629
+ container : { background : 'orange' } ,
630
630
title : { background : 'orange' } ,
631
631
} }
632
632
style = { { width : 600 } }
@@ -641,7 +641,7 @@ describe('dialog', () => {
641
641
expect ( document . querySelector ( '.rc-dialog-header' ) ) . toHaveStyle ( 'background: red' ) ;
642
642
expect ( document . querySelector ( '.rc-dialog-footer' ) ) . toHaveStyle ( 'background: blue' ) ;
643
643
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' ) ;
645
645
expect ( document . querySelector ( '.rc-dialog-title' ) ) . toHaveStyle ( 'background: orange' ) ;
646
646
} ) ;
647
647
0 commit comments