@@ -86,6 +86,7 @@ const nestingValid = [
86
86
{ code : '<label>foo<progress /></label>' } ,
87
87
{ code : '<label>foo<textarea /></label>' } ,
88
88
// Custom controlComponents.
89
+ { code : '<label>A label<CustomInput /></label>' , options : [ { controlComponents : [ 'CustomInput' ] } ] } ,
89
90
{ code : '<label><span>A label<CustomInput /></span></label>' , options : [ { controlComponents : [ 'CustomInput' ] } ] } ,
90
91
{ code : '<label><span>A label<CustomInput /></span></label>' , settings : componentsSettings } ,
91
92
{ code : '<CustomLabel><span>A label<CustomInput /></span></CustomLabel>' , options : [ { controlComponents : [ 'CustomInput' ] , labelComponents : [ 'CustomLabel' ] } ] } ,
@@ -141,6 +142,7 @@ const nestingInvalid = [
141
142
{ code : '<label><span><span><span><span aria-label="A label" /><input /></span></span></span></label>' , options : [ { depth : 5 } ] , errors : [ expectedError ] } ,
142
143
{ code : '<label><span><span><span><input aria-label="A label" /></span></span></span></label>' , options : [ { depth : 5 } ] , errors : [ expectedError ] } ,
143
144
// Custom controlComponents.
145
+ { code : '<label>A label<OtherCustomInput /></label>' , options : [ { controlComponents : [ 'CustomInput' ] } ] , errors : [ expectedError ] } ,
144
146
{ code : '<label><span>A label<CustomInput /></span></label>' , options : [ { controlComponents : [ 'CustomInput' ] } ] , errors : [ expectedError ] } ,
145
147
{ code : '<CustomLabel><span>A label<CustomInput /></span></CustomLabel>' , options : [ { controlComponents : [ 'CustomInput' ] , labelComponents : [ 'CustomLabel' ] } ] , errors : [ expectedError ] } ,
146
148
{ code : '<CustomLabel><span label="A label"><CustomInput /></span></CustomLabel>' , options : [ { controlComponents : [ 'CustomInput' ] , labelComponents : [ 'CustomLabel' ] , labelAttributes : [ 'label' ] } ] , errors : [ expectedError ] } ,
0 commit comments