@jsonforms/material-renderers 3.1.0-alpha.0 → 3.1.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/lib/controls/MaterialBooleanControl.d.ts +1 -1
  2. package/lib/controls/MaterialBooleanToggleControl.d.ts +1 -1
  3. package/lib/controls/index.d.ts +2 -2
  4. package/lib/jsonforms-react-material.cjs.js +79 -11
  5. package/lib/jsonforms-react-material.cjs.js.map +1 -1
  6. package/lib/jsonforms-react-material.esm.js +79 -11
  7. package/lib/jsonforms-react-material.esm.js.map +1 -1
  8. package/lib/mui-controls/MuiCheckbox.d.ts +6 -1
  9. package/lib/mui-controls/MuiToggle.d.ts +6 -1
  10. package/package.json +23 -12
  11. package/src/additional/ListWithDetailMasterItem.tsx +1 -1
  12. package/src/controls/MaterialBooleanControl.tsx +84 -23
  13. package/src/controls/MaterialBooleanToggleControl.tsx +84 -23
  14. package/src/mui-controls/MuiCheckbox.tsx +12 -5
  15. package/src/mui-controls/MuiToggle.tsx +12 -5
  16. package/docs/assets/css/main.css +0 -1
  17. package/docs/assets/images/icons.png +0 -0
  18. package/docs/assets/images/icons@2x.png +0 -0
  19. package/docs/assets/images/widgets.png +0 -0
  20. package/docs/assets/images/widgets@2x.png +0 -0
  21. package/docs/assets/js/main.js +0 -51
  22. package/docs/assets/js/search.json +0 -1
  23. package/docs/classes/combinatorproperties.html +0 -957
  24. package/docs/classes/materialanyofstringorenumcontrol.html +0 -822
  25. package/docs/classes/materialtablecontrol.html +0 -999
  26. package/docs/globals.html +0 -4492
  27. package/docs/index.html +0 -753
  28. package/docs/interfaces/ajvprops.html +0 -162
  29. package/docs/interfaces/arraylayouttoolbarprops.html +0 -253
  30. package/docs/interfaces/categorizationstate.html +0 -154
  31. package/docs/interfaces/categorizationstepperstate.html +0 -154
  32. package/docs/interfaces/combinatorpropertiesprops.html +0 -182
  33. package/docs/interfaces/deletedialogprops.html +0 -225
  34. package/docs/interfaces/dispatchpropsofexpandpanel.html +0 -296
  35. package/docs/interfaces/emptytableprops.html +0 -154
  36. package/docs/interfaces/expandpanelprops.html +0 -594
  37. package/docs/interfaces/inputref.html +0 -168
  38. package/docs/interfaces/jsonformstheme.html +0 -352
  39. package/docs/interfaces/materialcategorizationlayoutrendererprops.html +0 -460
  40. package/docs/interfaces/materialcategorizationstepperlayoutrendererprops.html +0 -394
  41. package/docs/interfaces/materiallabelablelayoutrendererprops.html +0 -328
  42. package/docs/interfaces/materiallayoutrendererprops.html +0 -317
  43. package/docs/interfaces/materialtabletoolbarprops.html +0 -302
  44. package/docs/interfaces/muitextinputprops.html +0 -168
  45. package/docs/interfaces/nonemptycellcomponentprops.html +0 -266
  46. package/docs/interfaces/nonemptycellprops.html +0 -277
  47. package/docs/interfaces/nonemptyrowprops.html +0 -366
  48. package/docs/interfaces/ownoneofprops.html +0 -308
  49. package/docs/interfaces/ownpropsofexpandpanel.html +0 -397
  50. package/docs/interfaces/ownpropsofnonemptycell.html +0 -229
  51. package/docs/interfaces/statepropsofexpandpanel.html +0 -445
  52. package/docs/interfaces/tableheadercellprops.html +0 -154
  53. package/docs/interfaces/tablerowsprop.html +0 -330
  54. package/docs/interfaces/validationprops.html +0 -168
  55. package/docs/interfaces/withdeletedialogsupport.html +0 -170
  56. package/docs/interfaces/withinput.html +0 -154
  57. package/docs/interfaces/withoptionlabel.html +0 -230
  58. package/example/index.html +0 -16
  59. package/example/index.ts +0 -31
  60. package/rollup.config.js +0 -51
  61. package/stats.html +0 -3279
  62. package/test/renderers/MatchMediaMock.ts +0 -36
  63. package/test/renderers/MaterialAllOfRenderer.test.tsx +0 -114
  64. package/test/renderers/MaterialAnyOfRenderer.test.tsx +0 -310
  65. package/test/renderers/MaterialAnyOfStringOrEnumControl.test.tsx +0 -126
  66. package/test/renderers/MaterialArrayControl.test.tsx +0 -633
  67. package/test/renderers/MaterialArrayLayout.test.tsx +0 -528
  68. package/test/renderers/MaterialBooleanCell.test.tsx +0 -374
  69. package/test/renderers/MaterialBooleanToggleCell.test.tsx +0 -466
  70. package/test/renderers/MaterialBooleanToggleControl.test.tsx +0 -469
  71. package/test/renderers/MaterialCategorizationLayout.test.tsx +0 -458
  72. package/test/renderers/MaterialCategorizationStepperLayout.test.tsx +0 -647
  73. package/test/renderers/MaterialDateCell.test.tsx +0 -303
  74. package/test/renderers/MaterialDateControl.test.tsx +0 -411
  75. package/test/renderers/MaterialDateTimeControl.test.tsx +0 -417
  76. package/test/renderers/MaterialEnumArrayRenderer.test.tsx +0 -207
  77. package/test/renderers/MaterialEnumCell.test.tsx +0 -88
  78. package/test/renderers/MaterialEnumControl.test.tsx +0 -75
  79. package/test/renderers/MaterialGroupLayout.test.tsx +0 -90
  80. package/test/renderers/MaterialInputControl.test.tsx +0 -370
  81. package/test/renderers/MaterialIntegerCell.test.tsx +0 -333
  82. package/test/renderers/MaterialLabelRenderer.test.tsx +0 -114
  83. package/test/renderers/MaterialLayouts.test.tsx +0 -542
  84. package/test/renderers/MaterialListWithDetailRenderer.test.tsx +0 -279
  85. package/test/renderers/MaterialNativeControl.test.tsx +0 -81
  86. package/test/renderers/MaterialNumberCell.test.tsx +0 -382
  87. package/test/renderers/MaterialObjectControl.test.tsx +0 -186
  88. package/test/renderers/MaterialOneOfEnumCell.test.tsx +0 -94
  89. package/test/renderers/MaterialOneOfRadioGroupControl.test.tsx +0 -108
  90. package/test/renderers/MaterialOneOfRenderer.test.tsx +0 -603
  91. package/test/renderers/MaterialRadioGroupControl.test.tsx +0 -125
  92. package/test/renderers/MaterialSliderControl.test.tsx +0 -438
  93. package/test/renderers/MaterialTextCell.test.tsx +0 -541
  94. package/test/renderers/MaterialTextControl.test.tsx +0 -115
  95. package/test/renderers/MaterialTimeCell.test.tsx +0 -331
  96. package/test/renderers/MaterialTimeControl.test.tsx +0 -411
  97. package/test/renderers/util.ts +0 -50
  98. package/tsconfig.json +0 -13
  99. package/tsconfig.test.json +0 -7
  100. package/webpack/webpack.dev.js +0 -11
@@ -1,333 +0,0 @@
1
- /*
2
- The MIT License
3
-
4
- Copyright (c) 2017-2019 EclipseSource Munich
5
- https://github.com/eclipsesource/jsonforms
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
- THE SOFTWARE.
24
- */
25
- import './MatchMediaMock';
26
- import * as React from 'react';
27
- import {
28
- ControlElement,
29
- NOT_APPLICABLE
30
- } from '@jsonforms/core';
31
- import IntegerCell, {
32
- materialIntegerCellTester
33
- } from '../../src/cells/MaterialIntegerCell';
34
- import { materialRenderers } from '../../src';
35
-
36
- import Enzyme, { mount, ReactWrapper } from 'enzyme';
37
- import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
38
- import { JsonFormsStateProvider } from '@jsonforms/react';
39
- import { initCore, TestEmitter } from './util';
40
-
41
- Enzyme.configure({ adapter: new Adapter() });
42
-
43
- const data = { foo: 42 };
44
- const schema = {
45
- type: 'integer',
46
- minimum: 5
47
- };
48
- const uischema: ControlElement = {
49
- type: 'Control',
50
- scope: '#/properties/foo'
51
- };
52
-
53
- describe('Material integer cells tester', () => {
54
- const controlElement: ControlElement = {
55
- type: 'Control',
56
- scope: '#/properties/foo'
57
- };
58
-
59
- it('should fail', () => {
60
- expect(materialIntegerCellTester(undefined, undefined, undefined)).toBe(
61
- NOT_APPLICABLE
62
- );
63
- expect(materialIntegerCellTester(null, undefined, undefined)).toBe(NOT_APPLICABLE);
64
- expect(materialIntegerCellTester({ type: 'Foo' }, undefined, undefined)).toBe(
65
- NOT_APPLICABLE
66
- );
67
- expect(materialIntegerCellTester({ type: 'Control' }, undefined, undefined)).toBe(
68
- NOT_APPLICABLE
69
- );
70
- expect(
71
- materialIntegerCellTester(controlElement, {
72
- type: 'object',
73
- properties: { foo: { type: 'string' } }
74
- },
75
- undefined)
76
- ).toBe(NOT_APPLICABLE);
77
- expect(
78
- materialIntegerCellTester(controlElement, {
79
- type: 'object',
80
- properties: { foo: { type: 'string' }, bar: { type: 'integer' } }
81
- },
82
- undefined)
83
- ).toBe(NOT_APPLICABLE);
84
- });
85
-
86
- it('should succeed', () => {
87
- expect(
88
- materialIntegerCellTester(controlElement, {
89
- type: 'object',
90
- properties: { foo: { type: 'integer' } }
91
- },
92
- undefined)
93
- ).toBe(2);
94
- });
95
- });
96
-
97
- describe('Material integer cells', () => {
98
- let wrapper: ReactWrapper;
99
-
100
- afterEach(() => wrapper.unmount());
101
-
102
- it('should autofocus via option', () => {
103
- const control: ControlElement = {
104
- type: 'Control',
105
- scope: '#/properties/foo',
106
- options: {
107
- focus: true
108
- }
109
- };
110
- const core = initCore(schema, control, data);
111
- wrapper = mount(
112
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
113
- <IntegerCell schema={schema} uischema={control} path='foo' />
114
- </JsonFormsStateProvider>
115
- );
116
- const input = wrapper.find('input').first();
117
- expect(input.props().autoFocus).toBeTruthy();
118
- });
119
-
120
- it('should not autofocus via option', () => {
121
- const control: ControlElement = {
122
- type: 'Control',
123
- scope: '#/properties/foo',
124
- options: {
125
- focus: false
126
- }
127
- };
128
- const core = initCore(schema, control, data);
129
- wrapper = mount(
130
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
131
- <IntegerCell schema={schema} uischema={control} path='foo' />
132
- </JsonFormsStateProvider>
133
- );
134
- const input = wrapper.find('input');
135
- expect(input.props().autoFocus).toBeFalsy();
136
- });
137
-
138
- it('should not autofocus by default', () => {
139
- const control: ControlElement = {
140
- type: 'Control',
141
- scope: '#/properties/foo'
142
- };
143
- const core = initCore(schema, control, data);
144
- wrapper = mount(
145
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
146
- <IntegerCell schema={schema} uischema={control} path='foo' />
147
- </JsonFormsStateProvider>
148
- );
149
- const input = wrapper.find('input').first();
150
- expect(input.props().autoFocus).toBeFalsy();
151
- });
152
-
153
- it('should render', () => {
154
- const core = initCore(schema, uischema, data);
155
- wrapper = mount(
156
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
157
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
158
- </JsonFormsStateProvider>
159
- );
160
-
161
- const input = wrapper.find('input').first();
162
- expect(input.props().type).toBe('number');
163
- expect(input.props().step).toBe('1');
164
- expect(input.props().value).toBe(42);
165
- });
166
-
167
- it('should render 0', () => {
168
- const core = initCore(schema, uischema, { foo: 0 });
169
- wrapper = mount(
170
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
171
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
172
- </JsonFormsStateProvider>
173
- );
174
-
175
- const input = wrapper.find('input').first();
176
- expect(input.props().type).toBe('number');
177
- expect(input.props().step).toBe('1');
178
- expect(input.props().value).toBe(0);
179
- });
180
-
181
- it('should update via input event', (done) => {
182
- const core = initCore(schema, uischema, data);
183
- const onChangeData: any = {
184
- data: undefined
185
- };
186
- wrapper = mount(
187
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
188
- <TestEmitter
189
- onChange={({ data }) => {
190
- onChangeData.data = data;
191
- }}
192
- />
193
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
194
- </JsonFormsStateProvider>
195
- );
196
-
197
- const input = wrapper.find('input');
198
- input.simulate('change', { target: { value: 13 } });
199
- setTimeout(() => {
200
- expect(onChangeData.data.foo).toBe(13);
201
- done();
202
- }, 1000)
203
- });
204
-
205
- it('should update via action', (done) => {
206
- const core = initCore(schema, uischema, { foo: 13 });
207
- wrapper = mount(
208
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
209
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
210
- </JsonFormsStateProvider>
211
- );
212
- core.data = { ...core.data, foo: 42 };
213
- wrapper.setProps({ initState: { renderers: materialRenderers, core }} );
214
- wrapper.update();
215
- setTimeout(() => {
216
- const input = wrapper.find('input').first();
217
- expect(input.props().value).toBe(42);
218
- done();
219
- }, 1000);
220
- });
221
-
222
- it('should not update with undefined value', (done) => {
223
- const core = initCore(schema, uischema, data);
224
- wrapper = mount(
225
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
226
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
227
- </JsonFormsStateProvider>
228
- );
229
- core.data = { ...core.data, foo: undefined };
230
- wrapper.setProps({ initState: { renderers: materialRenderers, core }} );
231
- wrapper.update();
232
- setTimeout(() => {
233
- const input = wrapper.find('input');
234
- expect(input.props().value).toBe('');
235
- done();
236
- }, 1000);
237
- });
238
-
239
- it('should not update with null value', (done) => {
240
- const core = initCore(schema, uischema, data);
241
- wrapper = mount(
242
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
243
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
244
- </JsonFormsStateProvider>
245
- );
246
- core.data = { ...core.data, foo: null };
247
- wrapper.setProps({ initState: { renderers: materialRenderers, core }} );
248
- wrapper.update();
249
- setTimeout(() => {
250
- const input = wrapper.find('input').first();
251
- expect(input.props().value).toBe('');
252
- done();
253
- }, 1000);
254
- });
255
-
256
- it('should not update with wrong ref', (done) => {
257
- const core = initCore(schema, uischema, data);
258
- wrapper = mount(
259
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
260
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
261
- </JsonFormsStateProvider>
262
- );
263
- core.data = { ...core.data, bar: 11 };
264
- wrapper.setProps({ initState: { renderers: materialRenderers, core }} );
265
- wrapper.update();
266
- setTimeout(() => {
267
- const input = wrapper.find('input');
268
- expect(input.props().value).toBe(42);
269
- done();
270
- }, 1000);
271
- });
272
-
273
- it('should not update with null ref', (done) => {
274
- const core = initCore(schema, uischema, data);
275
- wrapper = mount(
276
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
277
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
278
- </JsonFormsStateProvider>
279
- );
280
- core.data = { ...core.data, null: 13 };
281
- wrapper.setProps({ initState: { renderers: materialRenderers, core }} );
282
- wrapper.update();
283
- setTimeout(() => {
284
- const input = wrapper.find('input');
285
- expect(input.props().value).toBe(42);
286
- done();
287
- }, 1000);
288
- });
289
-
290
- it('should not update with undefined ref', (done) => {
291
- const core = initCore(schema, uischema, data);
292
- wrapper = mount(
293
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
294
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
295
- </JsonFormsStateProvider>
296
- );
297
- core.data = { ...core.data, undefined: 13 };
298
- wrapper.setProps({ initState: { renderers: materialRenderers, core }} );
299
- wrapper.update();
300
- setTimeout(() => {
301
- const input = wrapper.find('input');
302
- expect(input.props().value).toBe(42);
303
- done();
304
- }, 1000);
305
- });
306
-
307
- it('can be disabled', () => {
308
- const core = initCore(schema, uischema, data);
309
- wrapper = mount(
310
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
311
- <IntegerCell
312
- schema={schema}
313
- uischema={uischema}
314
- enabled={false}
315
- path='foo'
316
- />
317
- </JsonFormsStateProvider>
318
- );
319
- const input = wrapper.find('input').first();
320
- expect(input.props().disabled).toBeTruthy();
321
- });
322
-
323
- it('should be enabled by default', () => {
324
- const core = initCore(schema, uischema, data);
325
- wrapper = mount(
326
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
327
- <IntegerCell schema={schema} uischema={uischema} path='foo' />
328
- </JsonFormsStateProvider>
329
- );
330
- const input = wrapper.find('input').first();
331
- expect(input.props().disabled).toBeFalsy();
332
- });
333
- });
@@ -1,114 +0,0 @@
1
- /*
2
- The MIT License
3
-
4
- Copyright (c) 2017-2019 EclipseSource Munich
5
- https://github.com/eclipsesource/jsonforms
6
-
7
- Permission is hereby granted, free of charge, to any person obtaining a copy
8
- of this software and associated documentation files (the "Software"), to deal
9
- in the Software without restriction, including without limitation the rights
10
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
- copies of the Software, and to permit persons to whom the Software is
12
- furnished to do so, subject to the following conditions:
13
-
14
- The above copyright notice and this permission notice shall be included in
15
- all copies or substantial portions of the Software.
16
-
17
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
- THE SOFTWARE.
24
- */
25
- import './MatchMediaMock';
26
- import * as React from 'react';
27
- import {
28
- LabelElement,
29
- NOT_APPLICABLE
30
- } from '@jsonforms/core';
31
- import '../../src/cells';
32
- import MaterialLabelRenderer, {
33
- materialLabelRendererTester
34
- } from '../../src/additional/MaterialLabelRenderer';
35
- import { materialRenderers } from '../../src';
36
- import Enzyme, { mount, ReactWrapper } from 'enzyme';
37
- import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
38
- import { JsonForms, JsonFormsStateProvider } from '@jsonforms/react';
39
- import { initCore } from './util';
40
-
41
- Enzyme.configure({ adapter: new Adapter() });
42
-
43
- const data = {};
44
- const schema = {
45
- type: 'object',
46
- properties: {}
47
- };
48
- const uischema: LabelElement = {
49
- type: 'Label',
50
- text: 'Foo'
51
- };
52
-
53
- describe('Material Label Renderer tester', () => {
54
- it('should fail', () => {
55
- expect(materialLabelRendererTester(undefined, undefined, undefined)).toBe(
56
- NOT_APPLICABLE
57
- );
58
- expect(materialLabelRendererTester(null, undefined, undefined)).toBe(NOT_APPLICABLE);
59
- expect(materialLabelRendererTester({ type: 'Foo' }, undefined, undefined)).toBe(
60
- NOT_APPLICABLE
61
- );
62
- expect(materialLabelRendererTester({ type: 'Label' }, undefined, undefined)).toBe(1);
63
- });
64
- });
65
-
66
- describe('Material Label Renderer', () => {
67
- let wrapper: ReactWrapper;
68
-
69
- afterEach(() => wrapper.unmount());
70
-
71
- it('render', () => {
72
- wrapper = mount(
73
- <JsonForms
74
- data={undefined}
75
- schema={schema}
76
- uischema={uischema}
77
- renderers={materialRenderers}
78
- />
79
- );
80
- expect(wrapper.find(MaterialLabelRenderer).length).toBeTruthy();
81
-
82
- const label = wrapper.find('h6').first();
83
- expect(label.text()).toBe('Foo');
84
- });
85
-
86
- it('can be hidden', () => {
87
- const core = initCore(schema, uischema, data);
88
- wrapper = mount(
89
- <JsonFormsStateProvider initState={{ renderers: materialRenderers, core }}>
90
- <MaterialLabelRenderer
91
- schema={schema}
92
- uischema={uischema}
93
- visible={false}
94
- />
95
- </JsonFormsStateProvider>
96
- );
97
- const labels = wrapper.find('h6');
98
- expect(labels.length).toBe(0);
99
- });
100
-
101
- it('should be shown by default', () => {
102
- wrapper = mount(
103
- <JsonForms
104
- data={undefined}
105
- schema={schema}
106
- uischema={uischema}
107
- renderers={materialRenderers}
108
- />
109
- );
110
- expect(wrapper.find(MaterialLabelRenderer).length).toBeTruthy();
111
- const label = wrapper.find('h6').first();
112
- expect(label.props().hidden).toBeFalsy();
113
- });
114
- });