@@ -364,24 +364,6 @@ describe('form-checkbox', () => {
364364 wrapper . destroy ( )
365365 } )
366366
367- it ( 'default has input validation class is-valid when state="valid"' , async ( ) => {
368- const wrapper = mount ( BFormCheckbox , {
369- propsData : {
370- state : 'valid' ,
371- checked : false
372- } ,
373- slots : {
374- default : 'foobar'
375- }
376- } )
377- const input = wrapper . find ( 'input' )
378- expect ( input ) . toBeDefined ( )
379- expect ( input . classes ( ) ) . not . toContain ( 'is-invalid' )
380- expect ( input . classes ( ) ) . toContain ( 'is-valid' )
381-
382- wrapper . destroy ( )
383- } )
384-
385367 it ( 'default has input validation class is-invalid when state=false' , async ( ) => {
386368 const wrapper = mount ( BFormCheckbox , {
387369 propsData : {
@@ -400,24 +382,6 @@ describe('form-checkbox', () => {
400382 wrapper . destroy ( )
401383 } )
402384
403- it ( 'default has input validation class is-invalid when state="invalid"' , async ( ) => {
404- const wrapper = mount ( BFormCheckbox , {
405- propsData : {
406- state : 'invalid' ,
407- checked : false
408- } ,
409- slots : {
410- default : 'foobar'
411- }
412- } )
413- const input = wrapper . find ( 'input' )
414- expect ( input ) . toBeDefined ( )
415- expect ( input . classes ( ) ) . toContain ( 'is-invalid' )
416- expect ( input . classes ( ) ) . not . toContain ( 'is-valid' )
417-
418- wrapper . destroy ( )
419- } )
420-
421385 // --- Plain styling ---
422386
423387 it ( 'plain has structure <div><input><label></label></div>' , async ( ) => {
@@ -610,25 +574,6 @@ describe('form-checkbox', () => {
610574 wrapper . destroy ( )
611575 } )
612576
613- it ( 'plain has input validation class is-valid when state="valid"' , async ( ) => {
614- const wrapper = mount ( BFormCheckbox , {
615- propsData : {
616- state : 'valid' ,
617- plain : true ,
618- checked : false
619- } ,
620- slots : {
621- default : 'foobar'
622- }
623- } )
624- const input = wrapper . find ( 'input' )
625- expect ( input ) . toBeDefined ( )
626- expect ( input . classes ( ) ) . not . toContain ( 'is-invalid' )
627- expect ( input . classes ( ) ) . toContain ( 'is-valid' )
628-
629- wrapper . destroy ( )
630- } )
631-
632577 it ( 'plain has input validation class is-invalid when state=false' , async ( ) => {
633578 const wrapper = mount ( BFormCheckbox , {
634579 propsData : {
@@ -648,25 +593,6 @@ describe('form-checkbox', () => {
648593 wrapper . destroy ( )
649594 } )
650595
651- it ( 'plain has input validation class is-invalid when state="invalid"' , async ( ) => {
652- const wrapper = mount ( BFormCheckbox , {
653- propsData : {
654- state : 'invalid' ,
655- plain : true ,
656- checked : false
657- } ,
658- slots : {
659- default : 'foobar'
660- }
661- } )
662- const input = wrapper . find ( 'input' )
663- expect ( input ) . toBeDefined ( )
664- expect ( input . classes ( ) ) . toContain ( 'is-invalid' )
665- expect ( input . classes ( ) ) . not . toContain ( 'is-valid' )
666-
667- wrapper . destroy ( )
668- } )
669-
670596 // --- Switch styling - stand alone ---
671597
672598 it ( 'switch has structure <div><input><label></label></div>' , async ( ) => {
0 commit comments