@@ -276,16 +276,6 @@ describe('modal', () => {
276
276
expect ( $bclosebutton . classes ( ) ) . toContain ( 'foobar' )
277
277
} )
278
278
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
-
289
279
it ( 'nested div BCloseButton has no variant class when headerCloseVariant' , ( ) => {
290
280
const wrapper = mount ( BModal , {
291
281
global : { stubs : { teleport : true } } ,
@@ -326,17 +316,6 @@ describe('modal', () => {
326
316
expect ( $bbutton . classes ( ) ) . toContain ( 'foobar' )
327
317
} )
328
318
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
-
340
319
it ( 'nested div BButton has variant class when headerCloseVariant' , ( ) => {
341
320
const wrapper = mount ( BModal , {
342
321
global : { stubs : { teleport : true } } ,
@@ -348,27 +327,6 @@ describe('modal', () => {
348
327
expect ( $bbutton . classes ( ) ) . toContain ( 'btn-warning' )
349
328
} )
350
329
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
-
372
330
// Test isActive states
373
331
374
332
// Test emit states
0 commit comments