@@ -10,36 +10,38 @@ import {
10
10
import {
11
11
CheckboxFieldForTest ,
12
12
CheckboxFieldForRefTest ,
13
- CheckboxWForFormLayoutTests ,
13
+ CheckboxForFormLayoutTests ,
14
14
} from './CheckboxField.story' ;
15
+ import type { CheckboxForFormLayoutTestsProps } from './CheckboxField.story' ;
15
16
import { checkedPropTest } from './_propTests/checkedPropTest' ;
16
17
17
18
test . describe ( 'CheckboxField' , ( ) => {
18
19
test . describe ( 'base' , ( ) => {
19
20
test . describe ( 'visual' , ( ) => {
20
21
[
22
+ ...propTests . defaultComponentPropTest ,
21
23
...propTests . labelPropTest ,
22
24
...propTests . renderAsRequiredPropTest ,
23
25
...propTests . isLabelVisiblePropTest ,
24
- ...propTests . labelPositionPropTest ( ) ,
26
+ ...propTests . labelPositionPropTest ,
25
27
...mixPropTests ( [
26
28
checkedPropTest ,
27
29
propTests . disabledPropTest ,
28
- propTests . validationStatePropTest ( true ) ,
30
+ propTests . validationStatePropTest ,
29
31
] ) ,
30
32
...mixPropTests ( [
31
33
checkedPropTest ,
32
34
propTests . requiredPropTest ,
33
35
] ) ,
34
36
...mixPropTests ( [
35
37
checkedPropTest ,
36
- propTests . validationTextPropTest ( true ) ,
37
- propTests . validationStatePropTest ( true ) ,
38
+ propTests . validationTextPropTest ,
39
+ propTests . validationStatePropTest ,
38
40
] ) ,
39
41
...mixPropTests ( [
40
42
checkedPropTest ,
41
- propTests . validationTextPropTest ( true ) ,
42
- propTests . helpTextPropTest ( true ) ,
43
+ propTests . validationTextPropTest ,
44
+ propTests . helpTextPropTest ,
43
45
] ) ,
44
46
] . forEach ( ( {
45
47
name,
@@ -122,7 +124,7 @@ test.describe('CheckboxField', () => {
122
124
test . describe ( 'formLayout' , ( ) => {
123
125
test . describe ( 'visual' , ( ) => {
124
126
[
125
- ...propTests . layoutPropTest ( true ) ,
127
+ ...propTests . layoutPropTest ,
126
128
] . forEach ( ( {
127
129
name,
128
130
onBeforeTest,
@@ -137,8 +139,8 @@ test.describe('CheckboxField', () => {
137
139
}
138
140
139
141
const component = await mount (
140
- < CheckboxWForFormLayoutTests
141
- { ...props }
142
+ < CheckboxForFormLayoutTests
143
+ { ...props as unknown as CheckboxForFormLayoutTestsProps }
142
144
/> ,
143
145
) ;
144
146
0 commit comments