@@ -212,16 +212,6 @@ describe('alert', () => {
212
212
expect ( $bclosebutton . attributes ( 'aria-label' ) ) . toBe ( 'Close' )
213
213
} )
214
214
215
- it ( 'nested div BButton has aria-label to be Close by default' , ( ) => {
216
- const wrapper = mount ( BAlert , {
217
- props : { modelValue : true , dismissible : true } ,
218
- slots : { close : 'foobar' } ,
219
- } )
220
- const $div = wrapper . get ( 'div' )
221
- const $bbutton = $div . getComponent ( BButton )
222
- expect ( $bbutton . attributes ( 'aria-label' ) ) . toBe ( 'Close' )
223
- } )
224
-
225
215
it ( 'nested div BCloseButton has aria-label to be prop closeLabel' , ( ) => {
226
216
const wrapper = mount ( BAlert , {
227
217
props : { modelValue : true , dismissible : true , closeLabel : 'foobar' } ,
@@ -231,16 +221,6 @@ describe('alert', () => {
231
221
expect ( $bclosebutton . attributes ( 'aria-label' ) ) . toBe ( 'foobar' )
232
222
} )
233
223
234
- it ( 'nested div BButton has aria-label to be prop closeLabel' , ( ) => {
235
- const wrapper = mount ( BAlert , {
236
- props : { modelValue : true , dismissible : true , closeLabel : 'foobar' } ,
237
- slots : { close : 'foobar' } ,
238
- } )
239
- const $div = wrapper . get ( 'div' )
240
- const $bbutton = $div . getComponent ( BButton )
241
- expect ( $bbutton . attributes ( 'aria-label' ) ) . toBe ( 'foobar' )
242
- } )
243
-
244
224
// BCloseButton variant
245
225
it ( 'nested div BCloseButton emits update:modelValue when clicked when modelValue boolean' , async ( ) => {
246
226
const wrapper = mount ( BAlert , {
@@ -303,15 +283,6 @@ describe('alert', () => {
303
283
expect ( $bclosebutton . classes ( ) ) . toContain ( 'foobar' )
304
284
} )
305
285
306
- it ( 'nested div BCloseButton has class when prop closeWhite' , ( ) => {
307
- const wrapper = mount ( BAlert , {
308
- props : { modelValue : true , dismissible : true , closeWhite : true } ,
309
- } )
310
- const $div = wrapper . get ( 'div' )
311
- const $bclosebutton = $div . getComponent ( BCloseButton )
312
- expect ( $bclosebutton . classes ( ) ) . toContain ( 'btn-close-white' )
313
- } )
314
-
315
286
it ( 'nested div BCloseButton has no class when no slot close' , ( ) => {
316
287
const wrapper = mount ( BAlert , {
317
288
props : { modelValue : true , dismissible : true } ,
@@ -397,16 +368,6 @@ describe('alert', () => {
397
368
expect ( $bbutton . classes ( ) ) . toContain ( 'foobar' )
398
369
} )
399
370
400
- it ( 'nested div BButton has no class when prop closeWhite' , ( ) => {
401
- const wrapper = mount ( BAlert , {
402
- props : { modelValue : true , dismissible : true , closeWhite : true } ,
403
- slots : { close : 'foobar' } ,
404
- } )
405
- const $div = wrapper . get ( 'div' )
406
- const $bbutton = $div . getComponent ( BButton )
407
- expect ( $bbutton . classes ( ) ) . not . toContain ( 'btn-close-white' )
408
- } )
409
-
410
371
it ( 'nested div BButton has class when slot close' , ( ) => {
411
372
const wrapper = mount ( BAlert , {
412
373
props : { modelValue : true , dismissible : true } ,
0 commit comments