@@ -399,7 +399,7 @@ describe('dialog', () => {
399399 }
400400 /> ,
401401 ) ;
402- expect ( modalRender . find ( '.rc-dialog-content ' ) . props ( ) . style . background ) . toEqual ( '#1890ff' ) ;
402+ expect ( modalRender . find ( '.rc-dialog-section ' ) . props ( ) . style . background ) . toEqual ( '#1890ff' ) ;
403403 } ) ;
404404
405405 describe ( 'focusTriggerAfterClose' , ( ) => {
@@ -589,7 +589,7 @@ describe('dialog', () => {
589589 footer : 'custom-footer' ,
590590 mask : 'custom-mask' ,
591591 wrapper : 'custom-wrapper' ,
592- content : 'custom-content ' ,
592+ section : 'custom-section ' ,
593593 } }
594594 style = { { width : 600 } }
595595 height = { 903 }
@@ -604,7 +604,7 @@ describe('dialog', () => {
604604 expect ( wrapper . find ( '.rc-dialog-header' ) . props ( ) . className ) . toContain ( 'custom-header' ) ;
605605 expect ( wrapper . find ( '.rc-dialog-footer' ) . props ( ) . className ) . toContain ( 'custom-footer' ) ;
606606 expect ( wrapper . find ( '.rc-dialog-mask' ) . props ( ) . className ) . toContain ( 'custom-mask' ) ;
607- expect ( wrapper . find ( '.rc-dialog-content ' ) . props ( ) . className ) . toContain ( 'custom-content ' ) ;
607+ expect ( wrapper . find ( '.rc-dialog-section ' ) . props ( ) . className ) . toContain ( 'custom-section ' ) ;
608608 } ) ;
609609
610610 it ( 'should support styles' , ( ) => {
@@ -619,7 +619,8 @@ describe('dialog', () => {
619619 footer : { background : 'blue' } ,
620620 mask : { background : 'yellow' } ,
621621 wrapper : { background : 'pink' } ,
622- content : { background : 'orange' } ,
622+ section : { background : 'orange' } ,
623+ title : { background : 'orange' } ,
623624 } }
624625 style = { { width : 600 } }
625626 height = { 903 }
@@ -634,7 +635,8 @@ describe('dialog', () => {
634635 expect ( wrapper . find ( '.rc-dialog-header' ) . props ( ) . style . background ) . toBe ( 'red' ) ;
635636 expect ( wrapper . find ( '.rc-dialog-footer' ) . props ( ) . style . background ) . toBe ( 'blue' ) ;
636637 expect ( wrapper . find ( '.rc-dialog-mask' ) . props ( ) . style . background ) . toBe ( 'yellow' ) ;
637- expect ( wrapper . find ( '.rc-dialog-content' ) . props ( ) . style . background ) . toBe ( 'orange' ) ;
638+ expect ( wrapper . find ( '.rc-dialog-section' ) . props ( ) . style . background ) . toBe ( 'orange' ) ;
639+ expect ( wrapper . find ( '.rc-dialog-title' ) . props ( ) . style . background ) . toBe ( 'orange' ) ;
638640 } ) ;
639641 it ( 'should warning' , ( ) => {
640642 const spy = jest . spyOn ( console , 'error' ) . mockImplementation ( ( ) => { } ) ;
0 commit comments