@@ -276,16 +276,6 @@ describe('modal', () => {
276276 expect ( $bclosebutton . classes ( ) ) . toContain ( 'foobar' )
277277 } )
278278
279- it ( 'nested div BCloseButton has class when prop headerCloseWhite' , ( ) => {
280- const wrapper = mount ( BModal , {
281- global : { stubs : { teleport : true } } ,
282- props : { headerCloseWhite : true } ,
283- } )
284- const $div = wrapper . get ( 'div' )
285- const $bclosebutton = $div . getComponent ( BCloseButton )
286- expect ( $bclosebutton . classes ( ) ) . toContain ( 'btn-close-white' )
287- } )
288-
289279 it ( 'nested div BCloseButton has no variant class when headerCloseVariant' , ( ) => {
290280 const wrapper = mount ( BModal , {
291281 global : { stubs : { teleport : true } } ,
@@ -326,17 +316,6 @@ describe('modal', () => {
326316 expect ( $bbutton . classes ( ) ) . toContain ( 'foobar' )
327317 } )
328318
329- it ( 'nested div BButton has class when prop headerCloseWhite' , ( ) => {
330- const wrapper = mount ( BModal , {
331- global : { stubs : { teleport : true } } ,
332- props : { headerCloseWhite : true } ,
333- slots : { 'header-close' : 'foobar' } ,
334- } )
335- const $div = wrapper . get ( 'div' )
336- const $bbutton = $div . getComponent ( BButton )
337- expect ( $bbutton . classes ( ) ) . not . toContain ( 'btn-close-white' )
338- } )
339-
340319 it ( 'nested div BButton has variant class when headerCloseVariant' , ( ) => {
341320 const wrapper = mount ( BModal , {
342321 global : { stubs : { teleport : true } } ,
@@ -348,27 +327,6 @@ describe('modal', () => {
348327 expect ( $bbutton . classes ( ) ) . toContain ( 'btn-warning' )
349328 } )
350329
351- it ( 'nested div BButton has aria-label to be Close by default' , ( ) => {
352- const wrapper = mount ( BModal , {
353- global : { stubs : { teleport : true } } ,
354- slots : { 'header-close' : 'foobar' } ,
355- } )
356- const $div = wrapper . get ( 'div' )
357- const $bbutton = $div . getComponent ( BButton )
358- expect ( $bbutton . attributes ( 'aria-label' ) ) . toBe ( 'Close' )
359- } )
360-
361- it ( 'nested div BButton has aria-label to be prop headerCloseLabel' , ( ) => {
362- const wrapper = mount ( BModal , {
363- global : { stubs : { teleport : true } } ,
364- props : { headerCloseLabel : 'foobar' } ,
365- slots : { 'header-close' : 'foobar' } ,
366- } )
367- const $div = wrapper . get ( 'div' )
368- const $bbutton = $div . getComponent ( BButton )
369- expect ( $bbutton . attributes ( 'aria-label' ) ) . toBe ( 'foobar' )
370- } )
371-
372330 // Test isActive states
373331
374332 // Test emit states
0 commit comments