Skip to content

Commit 4c70d4a

Browse files
isaacrowntreeclaude
andcommitted
test(textinput): update snapshots for theme fontWeight fallback
The previous snapshots captured the buggy `"fontWeight": undefined` output that this branch fixes. Regenerated to reflect the theme font's fontWeight (e.g. "400") now flowing through correctly. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 3cfa201 commit 4c70d4a

1 file changed

Lines changed: 31 additions & 31 deletions

File tree

src/components/__tests__/__snapshots__/TextInput.test.tsx.snap

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ exports[`call onPress when affix adornment pressed 1`] = `
106106
"color": "rgba(103, 80, 164, 1)",
107107
"fontFamily": "System",
108108
"fontSize": 16,
109-
"fontWeight": undefined,
109+
"fontWeight": "400",
110110
"left": 0,
111111
"letterSpacing": 0.15,
112112
"lineHeight": undefined,
@@ -144,7 +144,7 @@ exports[`call onPress when affix adornment pressed 1`] = `
144144
"color": "rgba(73, 69, 79, 1)",
145145
"fontFamily": "System",
146146
"fontSize": 16,
147-
"fontWeight": undefined,
147+
"fontWeight": "400",
148148
"left": 0,
149149
"letterSpacing": 0.15,
150150
"lineHeight": undefined,
@@ -202,7 +202,7 @@ exports[`call onPress when affix adornment pressed 1`] = `
202202
"color": "rgba(28, 27, 31, 1)",
203203
"fontFamily": "System",
204204
"fontSize": 16,
205-
"fontWeight": undefined,
205+
"fontWeight": "400",
206206
"letterSpacing": 0.15,
207207
"lineHeight": undefined,
208208
"minWidth": 65,
@@ -282,7 +282,7 @@ exports[`call onPress when affix adornment pressed 1`] = `
282282
{
283283
"fontFamily": "System",
284284
"fontSize": 16,
285-
"fontWeight": undefined,
285+
"fontWeight": "400",
286286
"letterSpacing": 0.15,
287287
"lineHeight": undefined,
288288
},
@@ -404,7 +404,7 @@ exports[`correctly applies a component as the text label 1`] = `
404404
"color": "rgba(103, 80, 164, 1)",
405405
"fontFamily": "System",
406406
"fontSize": 16,
407-
"fontWeight": undefined,
407+
"fontWeight": "400",
408408
"left": 0,
409409
"letterSpacing": 0.15,
410410
"lineHeight": undefined,
@@ -450,7 +450,7 @@ exports[`correctly applies a component as the text label 1`] = `
450450
"color": "rgba(73, 69, 79, 1)",
451451
"fontFamily": "System",
452452
"fontSize": 16,
453-
"fontWeight": undefined,
453+
"fontWeight": "400",
454454
"left": 0,
455455
"letterSpacing": 0.15,
456456
"lineHeight": undefined,
@@ -516,7 +516,7 @@ exports[`correctly applies a component as the text label 1`] = `
516516
"color": "rgba(28, 27, 31, 1)",
517517
"fontFamily": "System",
518518
"fontSize": 16,
519-
"fontWeight": undefined,
519+
"fontWeight": "400",
520520
"letterSpacing": 0.15,
521521
"lineHeight": undefined,
522522
"minWidth": 65,
@@ -646,7 +646,7 @@ exports[`correctly applies cursorColor prop 1`] = `
646646
"color": "rgba(103, 80, 164, 1)",
647647
"fontFamily": "System",
648648
"fontSize": 16,
649-
"fontWeight": undefined,
649+
"fontWeight": "400",
650650
"left": 0,
651651
"letterSpacing": 0.15,
652652
"lineHeight": undefined,
@@ -684,7 +684,7 @@ exports[`correctly applies cursorColor prop 1`] = `
684684
"color": "rgba(73, 69, 79, 1)",
685685
"fontFamily": "System",
686686
"fontSize": 16,
687-
"fontWeight": undefined,
687+
"fontWeight": "400",
688688
"left": 0,
689689
"letterSpacing": 0.15,
690690
"lineHeight": undefined,
@@ -742,7 +742,7 @@ exports[`correctly applies cursorColor prop 1`] = `
742742
"color": "rgba(28, 27, 31, 1)",
743743
"fontFamily": "System",
744744
"fontSize": 16,
745-
"fontWeight": undefined,
745+
"fontWeight": "400",
746746
"letterSpacing": 0.15,
747747
"lineHeight": undefined,
748748
"minWidth": 65,
@@ -872,7 +872,7 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
872872
"color": "rgba(103, 80, 164, 1)",
873873
"fontFamily": "System",
874874
"fontSize": 16,
875-
"fontWeight": undefined,
875+
"fontWeight": "400",
876876
"left": 0,
877877
"letterSpacing": 0.15,
878878
"lineHeight": undefined,
@@ -910,7 +910,7 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
910910
"color": "rgba(73, 69, 79, 1)",
911911
"fontFamily": "System",
912912
"fontSize": 16,
913-
"fontWeight": undefined,
913+
"fontWeight": "400",
914914
"left": 0,
915915
"letterSpacing": 0.15,
916916
"lineHeight": undefined,
@@ -968,7 +968,7 @@ exports[`correctly applies default textAlign based on default RTL 1`] = `
968968
"color": "rgba(28, 27, 31, 1)",
969969
"fontFamily": "System",
970970
"fontSize": 16,
971-
"fontWeight": undefined,
971+
"fontWeight": "400",
972972
"letterSpacing": 0.15,
973973
"lineHeight": undefined,
974974
"minWidth": 65,
@@ -1090,7 +1090,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
10901090
"color": "transparent",
10911091
"fontFamily": "System",
10921092
"fontSize": 16,
1093-
"fontWeight": undefined,
1093+
"fontWeight": "400",
10941094
"height": 0,
10951095
"left": 8,
10961096
"letterSpacing": 0.15,
@@ -1131,7 +1131,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
11311131
"color": "rgba(103, 80, 164, 1)",
11321132
"fontFamily": "System",
11331133
"fontSize": 16,
1134-
"fontWeight": undefined,
1134+
"fontWeight": "400",
11351135
"left": 0,
11361136
"letterSpacing": 0.15,
11371137
"lineHeight": undefined,
@@ -1168,7 +1168,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
11681168
"color": "rgba(73, 69, 79, 1)",
11691169
"fontFamily": "System",
11701170
"fontSize": 16,
1171-
"fontWeight": undefined,
1171+
"fontWeight": "400",
11721172
"left": 0,
11731173
"letterSpacing": 0.15,
11741174
"lineHeight": undefined,
@@ -1228,7 +1228,7 @@ exports[`correctly applies height to multiline Outline TextInput 1`] = `
12281228
"color": "rgba(28, 27, 31, 1)",
12291229
"fontFamily": "System",
12301230
"fontSize": 16,
1231-
"fontWeight": undefined,
1231+
"fontWeight": "400",
12321232
"letterSpacing": 0.15,
12331233
"lineHeight": undefined,
12341234
"minWidth": 65,
@@ -1357,7 +1357,7 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
13571357
"color": "rgba(103, 80, 164, 1)",
13581358
"fontFamily": "System",
13591359
"fontSize": 16,
1360-
"fontWeight": undefined,
1360+
"fontWeight": "400",
13611361
"left": 0,
13621362
"letterSpacing": 0.15,
13631363
"lineHeight": undefined,
@@ -1395,7 +1395,7 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
13951395
"color": "rgba(73, 69, 79, 1)",
13961396
"fontFamily": "System",
13971397
"fontSize": 16,
1398-
"fontWeight": undefined,
1398+
"fontWeight": "400",
13991399
"left": 0,
14001400
"letterSpacing": 0.15,
14011401
"lineHeight": undefined,
@@ -1453,7 +1453,7 @@ exports[`correctly applies paddingLeft from contentStyleProp 1`] = `
14531453
"color": "rgba(28, 27, 31, 1)",
14541454
"fontFamily": "System",
14551455
"fontSize": 16,
1456-
"fontWeight": undefined,
1456+
"fontWeight": "400",
14571457
"letterSpacing": 0.15,
14581458
"lineHeight": undefined,
14591459
"minWidth": 65,
@@ -1585,7 +1585,7 @@ exports[`correctly applies textAlign center 1`] = `
15851585
"color": "rgba(103, 80, 164, 1)",
15861586
"fontFamily": "System",
15871587
"fontSize": 16,
1588-
"fontWeight": undefined,
1588+
"fontWeight": "400",
15891589
"left": 0,
15901590
"letterSpacing": 0.15,
15911591
"lineHeight": undefined,
@@ -1623,7 +1623,7 @@ exports[`correctly applies textAlign center 1`] = `
16231623
"color": "rgba(73, 69, 79, 1)",
16241624
"fontFamily": "System",
16251625
"fontSize": 16,
1626-
"fontWeight": undefined,
1626+
"fontWeight": "400",
16271627
"left": 0,
16281628
"letterSpacing": 0.15,
16291629
"lineHeight": undefined,
@@ -1681,7 +1681,7 @@ exports[`correctly applies textAlign center 1`] = `
16811681
"color": "rgba(28, 27, 31, 1)",
16821682
"fontFamily": "System",
16831683
"fontSize": 16,
1684-
"fontWeight": undefined,
1684+
"fontWeight": "400",
16851685
"letterSpacing": 0.15,
16861686
"lineHeight": undefined,
16871687
"minWidth": 65,
@@ -1811,7 +1811,7 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
18111811
"color": "rgba(103, 80, 164, 1)",
18121812
"fontFamily": "System",
18131813
"fontSize": 16,
1814-
"fontWeight": undefined,
1814+
"fontWeight": "400",
18151815
"left": 0,
18161816
"letterSpacing": 0.15,
18171817
"lineHeight": undefined,
@@ -1849,7 +1849,7 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
18491849
"color": "rgba(73, 69, 79, 1)",
18501850
"fontFamily": "System",
18511851
"fontSize": 16,
1852-
"fontWeight": undefined,
1852+
"fontWeight": "400",
18531853
"left": 0,
18541854
"letterSpacing": 0.15,
18551855
"lineHeight": undefined,
@@ -1907,7 +1907,7 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
19071907
"color": "rgba(28, 27, 31, 1)",
19081908
"fontFamily": "System",
19091909
"fontSize": 16,
1910-
"fontWeight": undefined,
1910+
"fontWeight": "400",
19111911
"letterSpacing": 0.15,
19121912
"lineHeight": undefined,
19131913
"minWidth": 65,
@@ -1956,7 +1956,7 @@ exports[`correctly renders left-side affix adornment, and right-side icon adornm
19561956
{
19571957
"fontFamily": "System",
19581958
"fontSize": 16,
1959-
"fontWeight": undefined,
1959+
"fontWeight": "400",
19601960
"letterSpacing": 0.15,
19611961
"lineHeight": undefined,
19621962
},
@@ -2230,7 +2230,7 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
22302230
"color": "rgba(103, 80, 164, 1)",
22312231
"fontFamily": "System",
22322232
"fontSize": 16,
2233-
"fontWeight": undefined,
2233+
"fontWeight": "400",
22342234
"left": 0,
22352235
"letterSpacing": 0.15,
22362236
"lineHeight": undefined,
@@ -2268,7 +2268,7 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
22682268
"color": "rgba(73, 69, 79, 1)",
22692269
"fontFamily": "System",
22702270
"fontSize": 16,
2271-
"fontWeight": undefined,
2271+
"fontWeight": "400",
22722272
"left": 0,
22732273
"letterSpacing": 0.15,
22742274
"lineHeight": undefined,
@@ -2326,7 +2326,7 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
23262326
"color": "rgba(28, 27, 31, 1)",
23272327
"fontFamily": "System",
23282328
"fontSize": 16,
2329-
"fontWeight": undefined,
2329+
"fontWeight": "400",
23302330
"letterSpacing": 0.15,
23312331
"lineHeight": undefined,
23322332
"minWidth": 65,
@@ -2526,7 +2526,7 @@ exports[`correctly renders left-side icon adornment, and right-side affix adornm
25262526
{
25272527
"fontFamily": "System",
25282528
"fontSize": 16,
2529-
"fontWeight": undefined,
2529+
"fontWeight": "400",
25302530
"letterSpacing": 0.15,
25312531
"lineHeight": undefined,
25322532
},

0 commit comments

Comments
 (0)