Skip to content

Commit 0be757a

Browse files
committed
Update tests for FormTemplate.Header
1 parent 18c4196 commit 0be757a

File tree

6 files changed

+20
-1
lines changed

6 files changed

+20
-1
lines changed

packages/common/src/form-template.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ FormTemplate.propTypes = {
153153
formWrapperProps: PropTypes.object,
154154
showFormControls: PropTypes.bool,
155155
disableSubmit: PropTypes.arrayOf(PropTypes.string),
156-
Header: PropTypes.oneOfType([PropTypes.node, PropTypes.func, PropTypes.element])
156+
Header: PropTypes.oneOfType([PropTypes.node, PropTypes.func, PropTypes.element, PropTypes.oneOf([React.Fragment])])
157157
};
158158

159159
FormTemplate.defaultProps = {

packages/pf3-component-mapper/src/tests/__snapshots__/input-addon.test.js.snap

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,7 @@ exports[`<Input Addon> should render group button before input addon correctly 1
245245
ButtonGroup={[Function]}
246246
Description={[Function]}
247247
FormWrapper={[Function]}
248+
Header={Symbol(react.fragment)}
248249
Title={[Function]}
249250
disableSubmit={Array []}
250251
formFields={
@@ -948,6 +949,7 @@ exports[`<Input Addon> should render group mixed before input addon correctly 1`
948949
ButtonGroup={[Function]}
949950
Description={[Function]}
950951
FormWrapper={[Function]}
952+
Header={Symbol(react.fragment)}
951953
Title={[Function]}
952954
disableSubmit={Array []}
953955
formFields={
@@ -1621,6 +1623,7 @@ exports[`<Input Addon> should render single after input addon correctly 1`] = `
16211623
ButtonGroup={[Function]}
16221624
Description={[Function]}
16231625
FormWrapper={[Function]}
1626+
Header={Symbol(react.fragment)}
16241627
Title={[Function]}
16251628
disableSubmit={Array []}
16261629
formFields={
@@ -2068,6 +2071,7 @@ exports[`<Input Addon> should render single before input addon correctly 1`] = `
20682071
ButtonGroup={[Function]}
20692072
Description={[Function]}
20702073
FormWrapper={[Function]}
2074+
Header={Symbol(react.fragment)}
20712075
Title={[Function]}
20722076
disableSubmit={Array []}
20732077
formFields={
@@ -2510,6 +2514,7 @@ exports[`<Input Addon> should render single button after input addon correctly 1
25102514
ButtonGroup={[Function]}
25112515
Description={[Function]}
25122516
FormWrapper={[Function]}
2517+
Header={Symbol(react.fragment)}
25132518
Title={[Function]}
25142519
disableSubmit={Array []}
25152520
formFields={
@@ -2986,6 +2991,7 @@ exports[`<Input Addon> should render single button before input addon correctly
29862991
ButtonGroup={[Function]}
29872992
Description={[Function]}
29882993
FormWrapper={[Function]}
2994+
Header={Symbol(react.fragment)}
29892995
Title={[Function]}
29902996
disableSubmit={Array []}
29912997
formFields={
@@ -3706,6 +3712,7 @@ exports[`<Input Addon> should render the ultimate input addon correctly 1`] = `
37063712
ButtonGroup={[Function]}
37073713
Description={[Function]}
37083714
FormWrapper={[Function]}
3715+
Header={Symbol(react.fragment)}
37093716
Title={[Function]}
37103717
disableSubmit={Array []}
37113718
formFields={

packages/pf3-component-mapper/src/tests/__snapshots__/multiple-choice-list.test.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ exports[`<MultipleChoiceList /> should render correctly 1`] = `
111111
ButtonGroup={[Function]}
112112
Description={[Function]}
113113
FormWrapper={[Function]}
114+
Header={Symbol(react.fragment)}
114115
Title={[Function]}
115116
disableSubmit={Array []}
116117
formFields={
@@ -893,6 +894,7 @@ exports[`<MultipleChoiceList /> should render in error state 1`] = `
893894
ButtonGroup={[Function]}
894895
Description={[Function]}
895896
FormWrapper={[Function]}
897+
Header={Symbol(react.fragment)}
896898
Title={[Function]}
897899
disableSubmit={Array []}
898900
formFields={

packages/pf3-component-mapper/src/tests/__snapshots__/wizard.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,7 @@ exports[`<Wizard /> should render Wizard correctly 1`] = `
185185
ButtonGroup={[Function]}
186186
Description={[Function]}
187187
FormWrapper={[Function]}
188+
Header={Symbol(react.fragment)}
188189
Title={[Function]}
189190
disableSubmit={Array []}
190191
formFields={
@@ -876,6 +877,7 @@ exports[`<Wizard /> should render Wizard with conditional steps correctly 1`] =
876877
ButtonGroup={[Function]}
877878
Description={[Function]}
878879
FormWrapper={[Function]}
880+
Header={Symbol(react.fragment)}
879881
Title={[Function]}
880882
disableSubmit={Array []}
881883
formFields={
@@ -1685,6 +1687,7 @@ exports[`<Wizard /> should render Wizard with stepsInfo correctly 1`] = `
16851687
ButtonGroup={[Function]}
16861688
Description={[Function]}
16871689
FormWrapper={[Function]}
1690+
Header={Symbol(react.fragment)}
16881691
Title={[Function]}
16891692
disableSubmit={Array []}
16901693
formFields={
@@ -2508,6 +2511,7 @@ exports[`<Wizard /> should render Wizard with title correctly 1`] = `
25082511
ButtonGroup={[Function]}
25092512
Description={[Function]}
25102513
FormWrapper={[Function]}
2514+
Header={Symbol(react.fragment)}
25112515
Title={[Function]}
25122516
disableSubmit={Array []}
25132517
formFields={

packages/pf4-component-mapper/src/tests/__snapshots__/form-template-common.test.js.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ exports[`FormTemplate PF4 Common should add missing buttons if not defined in bu
3737
ButtonGroup={[Function]}
3838
Description={[Function]}
3939
FormWrapper={[Function]}
40+
Header={Symbol(react.fragment)}
4041
Title={[Function]}
4142
buttonOrder={Array []}
4243
canReset={true}
@@ -270,6 +271,7 @@ exports[`FormTemplate PF4 Common should render all controls and with default lab
270271
ButtonGroup={[Function]}
271272
Description={[Function]}
272273
FormWrapper={[Function]}
274+
Header={Symbol(react.fragment)}
273275
Title={[Function]}
274276
disableSubmit={Array []}
275277
formFields={
@@ -485,6 +487,7 @@ exports[`FormTemplate PF4 Common should render buttons in correct order 1`] = `
485487
ButtonGroup={[Function]}
486488
Description={[Function]}
487489
FormWrapper={[Function]}
490+
Header={Symbol(react.fragment)}
488491
Title={[Function]}
489492
buttonOrder={
490493
Array [
@@ -731,6 +734,7 @@ exports[`FormTemplate PF4 Common should render only submit button 1`] = `
731734
ButtonGroup={[Function]}
732735
Description={[Function]}
733736
FormWrapper={[Function]}
737+
Header={Symbol(react.fragment)}
734738
Title={[Function]}
735739
canReset={false}
736740
disableSubmit={Array []}

packages/pf4-component-mapper/src/tests/wizard/__snapshots__/wizard.test.js.snap

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,7 @@ exports[`<Wizard /> should render correctly and unmount 1`] = `
234234
ButtonGroup={[Function]}
235235
Description={[Function]}
236236
FormWrapper={[Function]}
237+
Header={Symbol(react.fragment)}
237238
Title={[Function]}
238239
disableSubmit={Array []}
239240
formFields={
@@ -1285,6 +1286,7 @@ exports[`<Wizard /> should render correctly in modal and unmount 1`] = `
12851286
ButtonGroup={[Function]}
12861287
Description={[Function]}
12871288
FormWrapper={[Function]}
1289+
Header={Symbol(react.fragment)}
12881290
Title={[Function]}
12891291
disableSubmit={Array []}
12901292
formFields={

0 commit comments

Comments
 (0)