@salutejs/sdds-api-tests 0.29.0-dev.0 → 0.30.0
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salutejs/sdds-api-tests",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0",
|
|
4
4
|
"description": "API tests for components",
|
|
5
5
|
"author": "Salute Frontend Team <salute.developers@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -13,19 +13,19 @@
|
|
|
13
13
|
"test": "rm -rf tests && node script.mjs && NODE_OPTIONS=--max-old-space-size=8192 tsc --noEmit -p ./tsconfig.typecheck.json"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@salutejs/plasma-b2c": "1.
|
|
17
|
-
"@salutejs/plasma-giga": "0.
|
|
18
|
-
"@salutejs/plasma-icons": "1.
|
|
19
|
-
"@salutejs/plasma-web": "1.
|
|
20
|
-
"@salutejs/sdds-bizcom": "0.
|
|
21
|
-
"@salutejs/sdds-cs": "0.
|
|
22
|
-
"@salutejs/sdds-dfa": "0.
|
|
23
|
-
"@salutejs/sdds-finai": "0.
|
|
24
|
-
"@salutejs/sdds-insol": "0.
|
|
25
|
-
"@salutejs/sdds-netology": "0.
|
|
26
|
-
"@salutejs/sdds-platform-ai": "0.
|
|
27
|
-
"@salutejs/sdds-scan": "0.
|
|
28
|
-
"@salutejs/sdds-serv": "0.
|
|
16
|
+
"@salutejs/plasma-b2c": "1.641.0",
|
|
17
|
+
"@salutejs/plasma-giga": "0.368.0",
|
|
18
|
+
"@salutejs/plasma-icons": "1.254.0",
|
|
19
|
+
"@salutejs/plasma-web": "1.643.0",
|
|
20
|
+
"@salutejs/sdds-bizcom": "0.373.0",
|
|
21
|
+
"@salutejs/sdds-cs": "0.377.0",
|
|
22
|
+
"@salutejs/sdds-dfa": "0.371.0",
|
|
23
|
+
"@salutejs/sdds-finai": "0.364.0",
|
|
24
|
+
"@salutejs/sdds-insol": "0.368.0",
|
|
25
|
+
"@salutejs/sdds-netology": "0.372.0",
|
|
26
|
+
"@salutejs/sdds-platform-ai": "0.372.0",
|
|
27
|
+
"@salutejs/sdds-scan": "0.371.0",
|
|
28
|
+
"@salutejs/sdds-serv": "0.372.0",
|
|
29
29
|
"@types/node": "^25.9.1",
|
|
30
30
|
"@types/react": "18.0.28",
|
|
31
31
|
"@types/react-dom": "18.0.11",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "0256ddebc7098127e786152d29679e905aa10230"
|
|
39
39
|
}
|
|
@@ -88,6 +88,7 @@ describe('Basics', () => {
|
|
|
88
88
|
expectTypeOf<SelectProps>().toHaveProperty('chipType').toEqualTypeOf<'default' | 'text' | undefined>();
|
|
89
89
|
expectTypeOf<SelectProps>().toHaveProperty('chipClickArea').toEqualTypeOf<'full' | 'close-icon' | undefined>();
|
|
90
90
|
expectTypeOf<SelectProps>().toHaveProperty('label').toEqualTypeOf<string | undefined>();
|
|
91
|
+
expectTypeOf<SelectProps>().toHaveProperty('titleCaption').toEqualTypeOf<ReactNode | undefined>();
|
|
91
92
|
expectTypeOf<SelectProps>().toHaveProperty('keepPlaceholder').toEqualTypeOf<boolean | undefined>();
|
|
92
93
|
|
|
93
94
|
expectTypeOf<SelectProps>().toHaveProperty('required').toEqualTypeOf<boolean | undefined>();
|
|
@@ -152,6 +153,8 @@ describe('Basics', () => {
|
|
|
152
153
|
type HintSize = NonNullable<SelectProps['hintSize']>;
|
|
153
154
|
expectTypeOf<HintSize>().toExtend<string>();
|
|
154
155
|
expectTypeOf<string>().not.toExtend<HintSize>();
|
|
156
|
+
|
|
157
|
+
expectTypeOf<'clear'>().toExtend<NonNullable<SelectProps['appearance']>>();
|
|
155
158
|
});
|
|
156
159
|
|
|
157
160
|
it('HTMLButtonElement', () => {
|
|
@@ -185,6 +188,8 @@ describe('Unions', () => {
|
|
|
185
188
|
it('Target', () => {
|
|
186
189
|
expectTypeOf<SelectProps>({ items: [], target: 'textfield-like', contentLeft: null, helperText: 'helper' });
|
|
187
190
|
expectTypeOf<SelectProps>({ items: [], target: 'button-like', label: 'Label', placeholder: 'Choose value' });
|
|
191
|
+
expectTypeOf<SelectProps>({ items: [], appearance: 'clear', hasDivider: true });
|
|
192
|
+
expectTypeOf<SelectProps>({ items: [], appearance: 'default' });
|
|
188
193
|
|
|
189
194
|
// @ts-expect-error
|
|
190
195
|
expectTypeOf<SelectProps>({ items: [], target: 'button-like', contentLeft: null });
|
|
@@ -193,9 +198,13 @@ describe('Unions', () => {
|
|
|
193
198
|
// @ts-expect-error
|
|
194
199
|
expectTypeOf<SelectProps>({ items: [], target: 'button-like', helperText: 'helper' });
|
|
195
200
|
// @ts-expect-error
|
|
201
|
+
expectTypeOf<SelectProps>({ items: [], target: 'button-like', titleCaption: 'Caption' });
|
|
202
|
+
// @ts-expect-error
|
|
196
203
|
expectTypeOf<SelectProps>({ items: [], target: 'button-like', required: true });
|
|
197
204
|
// @ts-expect-error
|
|
198
205
|
expectTypeOf<SelectProps>({ items: [], target: 'button-like', hintText: 'hint' });
|
|
206
|
+
// @ts-expect-error
|
|
207
|
+
expectTypeOf<SelectProps>({ items: [], target: 'button-like', hasDivider: true });
|
|
199
208
|
});
|
|
200
209
|
|
|
201
210
|
it('IsMultiselect', () => {
|
|
@@ -344,6 +353,7 @@ describe('Examples', () => {
|
|
|
344
353
|
value={singleValue}
|
|
345
354
|
onChange={setSingleValue}
|
|
346
355
|
label="Single"
|
|
356
|
+
titleCaption="Подпись к полю"
|
|
347
357
|
placeholder="Placeholder"
|
|
348
358
|
helperText="Helper text"
|
|
349
359
|
/>
|
|
@@ -18,6 +18,7 @@ describe('Basics', () => {
|
|
|
18
18
|
expectTypeOf<Props>().toHaveProperty('size').toEqualTypeOf<string | undefined>();
|
|
19
19
|
expectTypeOf<Props>().toHaveProperty('view').toEqualTypeOf<string | undefined>();
|
|
20
20
|
expectTypeOf<Props>().toHaveProperty('label').toEqualTypeOf<string | undefined>();
|
|
21
|
+
expectTypeOf<Props>().toHaveProperty('titleCaption').toEqualTypeOf<ReactNode | undefined>();
|
|
21
22
|
expectTypeOf<Props>().toHaveProperty('placeholder').toEqualTypeOf<string | undefined>();
|
|
22
23
|
expectTypeOf<Props>().toHaveProperty('contentLeft').toEqualTypeOf<ReactNode>();
|
|
23
24
|
expectTypeOf<Props>().toHaveProperty('contentRight').toEqualTypeOf<ReactNode>();
|
|
@@ -37,7 +38,7 @@ describe('Basics', () => {
|
|
|
37
38
|
describe('Examples', () => {
|
|
38
39
|
it('Basic', () => {
|
|
39
40
|
() => {
|
|
40
|
-
void (<TimePicker value="00:00" size="m" />);
|
|
41
|
+
void (<TimePicker value="00:00" size="m" label="Лейбл" titleCaption="Подпись к полю" />);
|
|
41
42
|
void (<TimePicker value="00:00:00" columnsQuantity={3} />);
|
|
42
43
|
};
|
|
43
44
|
});
|