Skip to content

Commit 8a5fa68

Browse files
author
Protik Biswas
committed
adding snapshots
1 parent 528c58b commit 8a5fa68

File tree

2 files changed

+62
-17
lines changed

2 files changed

+62
-17
lines changed

packages/e2e-test-app-fabric/test/__snapshots__/TextInputComponentTest.test.ts.snap

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ exports[`TextInput Tests Text have cursorColor 1`] = `
333333
"Visual Tree": {
334334
"Comment": "textinput-cursorColor",
335335
"Offset": "0, 0, 0",
336-
"Size": "916, 32",
336+
"Size": "916, 33",
337337
"Visual Type": "SpriteVisual",
338338
"__Children": [
339339
{
@@ -1153,7 +1153,7 @@ exports[`TextInput Tests TextInputs can be defined as a set using accessibilityP
11531153
"Visual Tree": {
11541154
"Comment": "textinput-set",
11551155
"Offset": "0, 0, 0",
1156-
"Size": "916, 94",
1156+
"Size": "916, 93",
11571157
"Visual Type": "SpriteVisual",
11581158
"__Children": [
11591159
{
@@ -1222,12 +1222,12 @@ exports[`TextInput Tests TextInputs can be defined as a set using accessibilityP
12221222
},
12231223
{
12241224
"Offset": "0, 31, 0",
1225-
"Size": "916, 32",
1225+
"Size": "916, 33",
12261226
"Visual Type": "SpriteVisual",
12271227
"__Children": [
12281228
{
12291229
"Offset": "0, 0, 0",
1230-
"Size": "916, 32",
1230+
"Size": "916, 33",
12311231
"Visual Type": "SpriteVisual",
12321232
"__Children": [
12331233
{
@@ -1286,12 +1286,12 @@ exports[`TextInput Tests TextInputs can be defined as a set using accessibilityP
12861286
},
12871287
{
12881288
"Offset": "0, 62, 0",
1289-
"Size": "916, 33",
1289+
"Size": "916, 32",
12901290
"Visual Type": "SpriteVisual",
12911291
"__Children": [
12921292
{
12931293
"Offset": "0, 0, 0",
1294-
"Size": "916, 33",
1294+
"Size": "916, 32",
12951295
"Visual Type": "SpriteVisual",
12961296
"__Children": [
12971297
{
@@ -2757,7 +2757,7 @@ exports[`TextInput Tests TextInputs can have caretHidden 1`] = `
27572757
"Visual Tree": {
27582758
"Comment": "textinput-carethidden",
27592759
"Offset": "0, 0, 0",
2760-
"Size": "916, 32",
2760+
"Size": "916, 33",
27612761
"Visual Type": "SpriteVisual",
27622762
"__Children": [
27632763
{
@@ -4333,7 +4333,7 @@ exports[`TextInput Tests TextInputs can have shadows 1`] = `
43334333
"Visual Tree": {
43344334
"Comment": "textinput-shadow",
43354335
"Offset": "0, 0, 0",
4336-
"Size": "916, 33",
4336+
"Size": "916, 32",
43374337
"Visual Type": "SpriteVisual",
43384338
"__Children": [
43394339
{
@@ -6041,17 +6041,17 @@ exports[`TextInput Tests TextInputs which have a searchbox role should also supp
60416041
"Visual Tree": {
60426042
"Comment": "textinput-searchbox",
60436043
"Offset": "0, 0, 0",
6044-
"Size": "916, 31",
6044+
"Size": "916, 32",
60456045
"Visual Type": "SpriteVisual",
60466046
"__Children": [
60476047
{
60486048
"Offset": "0, 0, 0",
6049-
"Size": "916, 33",
6049+
"Size": "916, 32",
60506050
"Visual Type": "SpriteVisual",
60516051
"__Children": [
60526052
{
60536053
"Offset": "0, 0, 0",
6054-
"Size": "916, 33",
6054+
"Size": "916, 32",
60556055
"Visual Type": "SpriteVisual",
60566056
"__Children": [
60576057
{

packages/e2e-test-app-fabric/test/__snapshots__/snapshotPages.test.js.snap

Lines changed: 51 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81312,6 +81312,51 @@ exports[`snapshotAllPages TextInput 43`] = `
8131281312
`;
8131381313

8131481314
exports[`snapshotAllPages TextInput 44`] = `
81315+
<View_withRef>
81316+
<Text>
81317+
Manual clear using setValue('') in onSubmitEditing callback:
81318+
</Text>
81319+
<TextInput
81320+
onChangeText={[Function]}
81321+
onSubmitEditing={[Function]}
81322+
placeholder="Type text and press Enter to clear"
81323+
style={
81324+
[
81325+
{
81326+
"backgroundColor": "#ffffffff",
81327+
"borderColor": "#3c3c432d",
81328+
"color": "#000000ff",
81329+
},
81330+
{
81331+
"borderWidth": 1,
81332+
"flexGrow": 1,
81333+
"flexShrink": 1,
81334+
"fontSize": 13,
81335+
"padding": 4,
81336+
},
81337+
{
81338+
"fontSize": 16,
81339+
},
81340+
]
81341+
}
81342+
submitKeyEvents={
81343+
[
81344+
{
81345+
"code": "Enter",
81346+
},
81347+
]
81348+
}
81349+
testID="textinput-manual-clear-on-submit"
81350+
value=""
81351+
/>
81352+
<Text>
81353+
Current value: "
81354+
"
81355+
</Text>
81356+
</View_withRef>
81357+
`;
81358+
81359+
exports[`snapshotAllPages TextInput 45`] = `
8131581360
[
8131681361
<View_withRef
8131781362
focusable={true}
@@ -81377,7 +81422,7 @@ exports[`snapshotAllPages TextInput 44`] = `
8137781422
]
8137881423
`;
8137981424

81380-
exports[`snapshotAllPages TextInput 45`] = `
81425+
exports[`snapshotAllPages TextInput 46`] = `
8138181426
[
8138281427
<Text>
8138381428
Spell Check Enabled:
@@ -81426,7 +81471,7 @@ exports[`snapshotAllPages TextInput 45`] = `
8142681471
]
8142781472
`;
8142881473

81429-
exports[`snapshotAllPages TextInput 46`] = `
81474+
exports[`snapshotAllPages TextInput 47`] = `
8143081475
<View_withRef>
8143181476
<Text>
8143281477
CaretHidden
@@ -81458,7 +81503,7 @@ exports[`snapshotAllPages TextInput 46`] = `
8145881503
</View_withRef>
8145981504
`;
8146081505

81461-
exports[`snapshotAllPages TextInput 47`] = `
81506+
exports[`snapshotAllPages TextInput 48`] = `
8146281507
<View_withRef>
8146381508
<Text>
8146481509
Cursorcolor
@@ -81490,7 +81535,7 @@ exports[`snapshotAllPages TextInput 47`] = `
8149081535
</View_withRef>
8149181536
`;
8149281537

81493-
exports[`snapshotAllPages TextInput 48`] = `
81538+
exports[`snapshotAllPages TextInput 49`] = `
8149481539
<View_withRef>
8149581540
<Text>
8149681541
Shadow
@@ -81528,7 +81573,7 @@ exports[`snapshotAllPages TextInput 48`] = `
8152881573
</View_withRef>
8152981574
`;
8153081575

81531-
exports[`snapshotAllPages TextInput 49`] = `
81576+
exports[`snapshotAllPages TextInput 50`] = `
8153281577
<View_withRef
8153381578
accessible={true}
8153481579
testID="textinput-set"
@@ -81611,7 +81656,7 @@ exports[`snapshotAllPages TextInput 49`] = `
8161181656
</View_withRef>
8161281657
`;
8161381658

81614-
exports[`snapshotAllPages TextInput 50`] = `
81659+
exports[`snapshotAllPages TextInput 51`] = `
8161581660
<View_withRef
8161681661
accessible={true}
8161781662
testID="textinput-searchbox"

0 commit comments

Comments
 (0)