@@ -4,16 +4,16 @@ import { mount } from '@vue/test-utils';
44const SYNC_EVENT_NAME = 'update:open' ;
55
66const MOCK_MODAL_COPY = 'test modal copy' ;
7- const MOCK_MODAL_TITLE = 'test modal title ' ;
7+ const MOCK_MODAL_HEADER_TEXT = 'test modal header text ' ;
88const MOCK_MODAL_BANNER = 'test modal banner' ;
99const MOCK_MODAL_DEFAULT_SLOT = 'test content' ;
1010const MOCK_MODAL_HEADER_SLOT = 'test header' ;
1111const MOCK_MODAL_BANNER_SLOT = 'title' ;
1212
1313const baseProps = {
14- title : MOCK_MODAL_TITLE ,
14+ headerText : MOCK_MODAL_HEADER_TEXT ,
1515 copy : MOCK_MODAL_COPY ,
16- bannerTitle : MOCK_MODAL_BANNER ,
16+ bannerHeaderText : MOCK_MODAL_BANNER ,
1717 open : true ,
1818} ;
1919
@@ -81,9 +81,9 @@ describe('DtModal Tests', () => {
8181 expect ( overlay . element . tagName ) . toBe ( 'DIALOG' ) ;
8282 } ) ;
8383
84- it ( 'should render the title content' , ( ) => {
84+ it ( 'should render the header text content' , ( ) => {
8585 expect ( title . exists ( ) ) . toBe ( true ) ;
86- expect ( title . text ( ) ) . toEqual ( MOCK_MODAL_TITLE ) ;
86+ expect ( title . text ( ) ) . toEqual ( MOCK_MODAL_HEADER_TEXT ) ;
8787 } ) ;
8888
8989 it ( 'should render the banner content' , ( ) => {
@@ -129,7 +129,7 @@ describe('DtModal Tests', () => {
129129 } ) ;
130130
131131 describe ( 'When slots are provided' , ( ) => {
132- it ( 'Should display slotted header instead of title ' , ( ) => {
132+ it ( 'Should display slotted header instead of headerText ' , ( ) => {
133133 mockSlots = {
134134 header : MOCK_MODAL_HEADER_SLOT ,
135135 } ;
@@ -139,7 +139,7 @@ describe('DtModal Tests', () => {
139139 expect ( title . text ( ) ) . toEqual ( MOCK_MODAL_HEADER_SLOT ) ;
140140 } ) ;
141141
142- it ( 'Should display slotted banner instead of bannerTitle ' , ( ) => {
142+ it ( 'Should display slotted banner instead of bannerHeaderText ' , ( ) => {
143143 mockSlots = {
144144 banner : MOCK_MODAL_BANNER_SLOT ,
145145 } ;
@@ -219,11 +219,11 @@ describe('DtModal Tests', () => {
219219
220220 it ( 'Should apply banner class' , async ( ) => {
221221 const bannerClass = 'banner-class' ;
222- const bannerTitle = 'title' ;
222+ const bannerHeaderText = 'title' ;
223223
224224 await wrapper . setProps ( {
225225 open : true ,
226- bannerTitle ,
226+ bannerHeaderText ,
227227 bannerClass,
228228 } ) ;
229229
@@ -236,7 +236,7 @@ describe('DtModal Tests', () => {
236236 await wrapper . setProps ( {
237237 open : true ,
238238 bannerKind : 'info' ,
239- bannerTitle : 'title' ,
239+ bannerHeaderText : 'title' ,
240240 } ) ;
241241
242242 banner = wrapper . find ( '[data-qa="dt-modal-banner"]' ) ;
@@ -248,7 +248,7 @@ describe('DtModal Tests', () => {
248248 await wrapper . setProps ( {
249249 show : true ,
250250 bannerKind : 'critical' ,
251- bannerTitle : 'title' ,
251+ bannerHeaderText : 'title' ,
252252 } ) ;
253253
254254 banner = wrapper . find ( '[data-qa="dt-modal-banner"]' ) ;
0 commit comments