File tree Expand file tree Collapse file tree 2 files changed +553
-316
lines changed
pf3-component-mapper/src/tests/__snapshots__
pf4-component-mapper/src/tests/__snapshots__ Expand file tree Collapse file tree 2 files changed +553
-316
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ exports[`<MultipleChoiceList /> should render correctly 1`] = `
4646 },
4747 ]
4848 }
49+ render = { [Function ]}
4950 validate = { [Function ]}
5051 >
5152 <MockFieldProvider
@@ -67,10 +68,21 @@ exports[`<MultipleChoiceList /> should render correctly 1`] = `
6768 },
6869 ]
6970 }
71+ render = { [Function ]}
7072 validate = { [Function ]}
7173 >
7274 <Wrapper
7375 meta = { Object {}}
76+ rest = {
77+ Object {
78+ " children" : undefined ,
79+ " input" : Object {
80+ " onChange" : [MockFunction ],
81+ " value" : Array [],
82+ },
83+ " validate" : [Function ],
84+ }
85+ }
7486 >
7587 <FormGroup
7688 bsClass = " form-group"
@@ -109,37 +121,44 @@ exports[`<MultipleChoiceList /> should render correctly 1`] = `
109121 type = " checkbox"
110122 value = { 0 }
111123 >
112- <Checkbox
124+ <FinalCheckbox
113125 aria-label = " Foo"
114- bsClass = " checkbox"
115- disabled = { false }
116126 id = " undefined-0"
117- inline = { false }
118127 label = " Foo"
119128 onChange = { [Function ]}
120- title = " "
121129 type = " checkbox"
122130 value = { 0 }
123131 >
124- <div
125- className = " checkbox"
132+ <Checkbox
133+ aria-label = " Foo"
134+ bsClass = " checkbox"
135+ disabled = { false }
136+ id = " undefined-0"
137+ inline = { false }
138+ onChange = { [Function ]}
139+ title = " "
140+ type = " checkbox"
141+ value = { 0 }
126142 >
127- <label
128- title = " "
143+ <div
144+ className = " checkbox "
129145 >
130- <input
131- aria-label = " Foo"
132- disabled = { false }
133- id = " undefined-0"
134- label = " Foo"
135- onChange = { [Function ]}
136- type = " checkbox"
137- value = { 0 }
138- />
139- Foo
140- </label >
141- </div >
142- </Checkbox >
146+ <label
147+ title = " "
148+ >
149+ <input
150+ aria-label = " Foo"
151+ disabled = { false }
152+ id = " undefined-0"
153+ onChange = { [Function ]}
154+ type = " checkbox"
155+ value = { 0 }
156+ />
157+ Foo
158+ </label >
159+ </div >
160+ </Checkbox >
161+ </FinalCheckbox >
143162 </MockFieldProvider >
144163 </FieldProvider >
145164 <FieldProvider
@@ -163,37 +182,44 @@ exports[`<MultipleChoiceList /> should render correctly 1`] = `
163182 type = " checkbox"
164183 value = { 1 }
165184 >
166- <Checkbox
185+ <FinalCheckbox
167186 aria-label = " Bar"
168- bsClass = " checkbox"
169- disabled = { false }
170187 id = " undefined-1"
171- inline = { false }
172188 label = " Bar"
173189 onChange = { [Function ]}
174- title = " "
175190 type = " checkbox"
176191 value = { 1 }
177192 >
178- <div
179- className = " checkbox"
193+ <Checkbox
194+ aria-label = " Bar"
195+ bsClass = " checkbox"
196+ disabled = { false }
197+ id = " undefined-1"
198+ inline = { false }
199+ onChange = { [Function ]}
200+ title = " "
201+ type = " checkbox"
202+ value = { 1 }
180203 >
181- <label
182- title = " "
204+ <div
205+ className = " checkbox "
183206 >
184- <input
185- aria-label = " Bar"
186- disabled = { false }
187- id = " undefined-1"
188- label = " Bar"
189- onChange = { [Function ]}
190- type = " checkbox"
191- value = { 1 }
192- />
193- Bar
194- </label >
195- </div >
196- </Checkbox >
207+ <label
208+ title = " "
209+ >
210+ <input
211+ aria-label = " Bar"
212+ disabled = { false }
213+ id = " undefined-1"
214+ onChange = { [Function ]}
215+ type = " checkbox"
216+ value = { 1 }
217+ />
218+ Bar
219+ </label >
220+ </div >
221+ </Checkbox >
222+ </FinalCheckbox >
197223 </MockFieldProvider >
198224 </FieldProvider >
199225 </div >
@@ -252,6 +278,7 @@ exports[`<MultipleChoiceList /> should render in error state 1`] = `
252278 },
253279 ]
254280 }
281+ render = { [Function ]}
255282 validate = { [Function ]}
256283 >
257284 <MockFieldProvider
@@ -279,15 +306,27 @@ exports[`<MultipleChoiceList /> should render in error state 1`] = `
279306 },
280307 ]
281308 }
309+ render = { [Function ]}
282310 validate = { [Function ]}
283311 >
284312 <Wrapper
313+ error = " Error message"
285314 meta = {
286315 Object {
287316 " error" : " Error message" ,
288317 " touched" : true ,
289318 }
290319 }
320+ rest = {
321+ Object {
322+ " children" : undefined ,
323+ " input" : Object {
324+ " onChange" : [MockFunction ],
325+ " value" : Array [],
326+ },
327+ " validate" : [Function ],
328+ }
329+ }
291330 showError = " Error message"
292331 >
293332 <FormGroup
@@ -333,37 +372,44 @@ exports[`<MultipleChoiceList /> should render in error state 1`] = `
333372 type = " checkbox"
334373 value = { 0 }
335374 >
336- <Checkbox
375+ <FinalCheckbox
337376 aria-label = " Foo"
338- bsClass = " checkbox"
339- disabled = { false }
340377 id = " undefined-0"
341- inline = { false }
342378 label = " Foo"
343379 onChange = { [Function ]}
344- title = " "
345380 type = " checkbox"
346381 value = { 0 }
347382 >
348- <div
349- className = " checkbox"
383+ <Checkbox
384+ aria-label = " Foo"
385+ bsClass = " checkbox"
386+ disabled = { false }
387+ id = " undefined-0"
388+ inline = { false }
389+ onChange = { [Function ]}
390+ title = " "
391+ type = " checkbox"
392+ value = { 0 }
350393 >
351- <label
352- title = " "
394+ <div
395+ className = " checkbox "
353396 >
354- <input
355- aria-label = " Foo"
356- disabled = { false }
357- id = " undefined-0"
358- label = " Foo"
359- onChange = { [Function ]}
360- type = " checkbox"
361- value = { 0 }
362- />
363- Foo
364- </label >
365- </div >
366- </Checkbox >
397+ <label
398+ title = " "
399+ >
400+ <input
401+ aria-label = " Foo"
402+ disabled = { false }
403+ id = " undefined-0"
404+ onChange = { [Function ]}
405+ type = " checkbox"
406+ value = { 0 }
407+ />
408+ Foo
409+ </label >
410+ </div >
411+ </Checkbox >
412+ </FinalCheckbox >
367413 </MockFieldProvider >
368414 </FieldProvider >
369415 <FieldProvider
@@ -393,37 +439,44 @@ exports[`<MultipleChoiceList /> should render in error state 1`] = `
393439 type = " checkbox"
394440 value = { 1 }
395441 >
396- <Checkbox
442+ <FinalCheckbox
397443 aria-label = " Bar"
398- bsClass = " checkbox"
399- disabled = { false }
400444 id = " undefined-1"
401- inline = { false }
402445 label = " Bar"
403446 onChange = { [Function ]}
404- title = " "
405447 type = " checkbox"
406448 value = { 1 }
407449 >
408- <div
409- className = " checkbox"
450+ <Checkbox
451+ aria-label = " Bar"
452+ bsClass = " checkbox"
453+ disabled = { false }
454+ id = " undefined-1"
455+ inline = { false }
456+ onChange = { [Function ]}
457+ title = " "
458+ type = " checkbox"
459+ value = { 1 }
410460 >
411- <label
412- title = " "
461+ <div
462+ className = " checkbox "
413463 >
414- <input
415- aria-label = " Bar"
416- disabled = { false }
417- id = " undefined-1"
418- label = " Bar"
419- onChange = { [Function ]}
420- type = " checkbox"
421- value = { 1 }
422- />
423- Bar
424- </label >
425- </div >
426- </Checkbox >
464+ <label
465+ title = " "
466+ >
467+ <input
468+ aria-label = " Bar"
469+ disabled = { false }
470+ id = " undefined-1"
471+ onChange = { [Function ]}
472+ type = " checkbox"
473+ value = { 1 }
474+ />
475+ Bar
476+ </label >
477+ </div >
478+ </Checkbox >
479+ </FinalCheckbox >
427480 </MockFieldProvider >
428481 </FieldProvider >
429482 </div >
You can’t perform that action at this time.
0 commit comments