Browse Source

#146 - Updated snapshot

Elena Cristina Raffay Iglesias 1 year ago
parent
commit
fc86fb1e8a
1 changed files with 525 additions and 157 deletions
  1. 525 157
      apps/wallet/test/snapshot/__snapshots__/Home.test.js.snap

+ 525 - 157
apps/wallet/test/snapshot/__snapshots__/Home.test.js.snap

@@ -25,188 +25,167 @@ ShallowWrapper {
25 25
     "key": undefined,
26 26
     "nodeType": "class",
27 27
     "props": Object {
28
-      "children": Array [
28
+      "behavior": "position",
29
+      "children": <View
30
+        style={
31
+          Object {
32
+            "alignItems": "center",
33
+            "backgroundColor": "#fff",
34
+          }
35
+        }
36
+      >
29 37
         <Image
30
-          resizeMode="center"
31 38
           source={1}
32 39
           style={
33 40
             Object {
34
-              "flex": 2,
35
-              "marginTop": 30,
41
+              "height": 275,
42
+              "marginBottom": 50,
43
+              "marginTop": 75,
44
+              "width": 320,
36 45
             }
37 46
           }
38
-        />,
47
+        />
39 48
         <View
40 49
           style={
41 50
             Object {
42
-              "borderBottomWidth": 1,
43
-              "borderColor": "rgb(73,162,153)",
44
-              "flex": 1,
51
+              "flexDirection": "row",
45 52
               "marginBottom": 20,
53
+              "marginRight": 32,
46 54
             }
47 55
           }
48 56
         >
57
+          <Text
58
+            accessible={true}
59
+            allowFontScaling={true}
60
+            ellipsizeMode="tail"
61
+            style={
62
+              Object {
63
+                "marginVertical": 10,
64
+              }
65
+            }
66
+          >
67
+            PIN:  
68
+          </Text>
49 69
           <TextInput
50 70
             allowFontScaling={true}
51 71
             onChangeText={[Function]}
72
+            placeholder=" Pin"
52 73
             secureTextEntry={true}
53 74
             style={
54 75
               Object {
55
-                "height": 30,
56
-                "width": 300,
76
+                "alignItems": "center",
77
+                "borderWidth": 1,
78
+                "height": 35,
79
+                "paddingHorizontal": 10,
80
+                "width": 150,
57 81
               }
58 82
             }
59
-            underlineColorAndroid="rgb(0,163,158)"
83
+            underlineColorAndroid="transparent"
60 84
             value=""
61 85
           />
62
-        </View>,
63
-        <Button
64
-          enabled={true}
65
-          name="LOG IN"
66
-          onPress={[Function]}
67
-          style={Object {}}
68
-        />,
69
-      ],
70
-      "style": Object {
71
-        "alignItems": "center",
72
-        "backgroundColor": "#fff",
73
-        "flex": 1,
74
-      },
75
-    },
76
-    "ref": null,
77
-    "rendered": Array [
78
-      Object {
79
-        "instance": null,
80
-        "key": undefined,
81
-        "nodeType": "class",
82
-        "props": Object {
83
-          "resizeMode": "center",
84
-          "source": 1,
85
-          "style": Object {
86
-            "flex": 2,
87
-            "marginTop": 30,
88
-          },
89
-        },
90
-        "ref": null,
91
-        "rendered": null,
92
-        "type": [Function],
93
-      },
94
-      Object {
95
-        "instance": null,
96
-        "key": undefined,
97
-        "nodeType": "class",
98
-        "props": Object {
99
-          "children": <TextInput
100
-            allowFontScaling={true}
101
-            onChangeText={[Function]}
102
-            secureTextEntry={true}
86
+        </View>
87
+        <View
88
+          style={
89
+            Object {
90
+              "flexDirection": "row",
91
+            }
92
+          }
93
+        >
94
+          <Button
95
+            enabled={true}
96
+            name="Sign In"
97
+            onPress={[Function]}
103 98
             style={
104 99
               Object {
105
-                "height": 30,
106
-                "width": 300,
100
+                "alignItems": "center",
101
+                "width": 150,
107 102
               }
108 103
             }
109
-            underlineColorAndroid="rgb(0,163,158)"
110
-            value=""
111
-          />,
112
-          "style": Object {
113
-            "borderBottomWidth": 1,
114
-            "borderColor": "rgb(73,162,153)",
115
-            "flex": 1,
116
-            "marginBottom": 20,
117
-          },
118
-        },
119
-        "ref": null,
120
-        "rendered": Object {
121
-          "instance": null,
122
-          "key": undefined,
123
-          "nodeType": "class",
124
-          "props": Object {
125
-            "allowFontScaling": true,
126
-            "onChangeText": [Function],
127
-            "secureTextEntry": true,
128
-            "style": Object {
129
-              "height": 30,
130
-              "width": 300,
131
-            },
132
-            "underlineColorAndroid": "rgb(0,163,158)",
133
-            "value": "",
134
-          },
135
-          "ref": null,
136
-          "rendered": null,
137
-          "type": [Function],
138
-        },
139
-        "type": [Function],
140
-      },
141
-      Object {
142
-        "instance": null,
143
-        "key": undefined,
144
-        "nodeType": "function",
145
-        "props": Object {
146
-          "enabled": true,
147
-          "name": "LOG IN",
148
-          "onPress": [Function],
149
-          "style": Object {},
150
-        },
151
-        "ref": null,
152
-        "rendered": null,
153
-        "type": [Function],
154
-      },
155
-    ],
156
-    "type": [Function],
157
-  },
158
-  Symbol(enzyme.__nodes__): Array [
159
-    Object {
104
+          />
105
+        </View>
106
+      </View>,
107
+      "keyboardVerticalOffset": 50,
108
+    },
109
+    "ref": null,
110
+    "rendered": Object {
160 111
       "instance": null,
161 112
       "key": undefined,
162 113
       "nodeType": "class",
163 114
       "props": Object {
164 115
         "children": Array [
165 116
           <Image
166
-            resizeMode="center"
167 117
             source={1}
168 118
             style={
169 119
               Object {
170
-                "flex": 2,
171
-                "marginTop": 30,
120
+                "height": 275,
121
+                "marginBottom": 50,
122
+                "marginTop": 75,
123
+                "width": 320,
172 124
               }
173 125
             }
174 126
           />,
175 127
           <View
176 128
             style={
177 129
               Object {
178
-                "borderBottomWidth": 1,
179
-                "borderColor": "rgb(73,162,153)",
180
-                "flex": 1,
130
+                "flexDirection": "row",
181 131
                 "marginBottom": 20,
132
+                "marginRight": 32,
182 133
               }
183 134
             }
184 135
           >
136
+            <Text
137
+              accessible={true}
138
+              allowFontScaling={true}
139
+              ellipsizeMode="tail"
140
+              style={
141
+                Object {
142
+                  "marginVertical": 10,
143
+                }
144
+              }
145
+            >
146
+              PIN:  
147
+            </Text>
185 148
             <TextInput
186 149
               allowFontScaling={true}
187 150
               onChangeText={[Function]}
151
+              placeholder=" Pin"
188 152
               secureTextEntry={true}
189 153
               style={
190 154
                 Object {
191
-                  "height": 30,
192
-                  "width": 300,
155
+                  "alignItems": "center",
156
+                  "borderWidth": 1,
157
+                  "height": 35,
158
+                  "paddingHorizontal": 10,
159
+                  "width": 150,
193 160
                 }
194 161
               }
195
-              underlineColorAndroid="rgb(0,163,158)"
162
+              underlineColorAndroid="transparent"
196 163
               value=""
197 164
             />
198 165
           </View>,
199
-          <Button
200
-            enabled={true}
201
-            name="LOG IN"
202
-            onPress={[Function]}
203
-            style={Object {}}
204
-          />,
166
+          <View
167
+            style={
168
+              Object {
169
+                "flexDirection": "row",
170
+              }
171
+            }
172
+          >
173
+            <Button
174
+              enabled={true}
175
+              name="Sign In"
176
+              onPress={[Function]}
177
+              style={
178
+                Object {
179
+                  "alignItems": "center",
180
+                  "width": 150,
181
+                }
182
+              }
183
+            />
184
+          </View>,
205 185
         ],
206 186
         "style": Object {
207 187
           "alignItems": "center",
208 188
           "backgroundColor": "#fff",
209
-          "flex": 1,
210 189
         },
211 190
       },
212 191
       "ref": null,
@@ -216,11 +195,12 @@ ShallowWrapper {
216 195
           "key": undefined,
217 196
           "nodeType": "class",
218 197
           "props": Object {
219
-            "resizeMode": "center",
220 198
             "source": 1,
221 199
             "style": Object {
222
-              "flex": 2,
223
-              "marginTop": 30,
200
+              "height": 275,
201
+              "marginBottom": 50,
202
+              "marginTop": 75,
203
+              "width": 320,
224 204
             },
225 205
           },
226 206
           "ref": null,
@@ -232,41 +212,121 @@ ShallowWrapper {
232 212
           "key": undefined,
233 213
           "nodeType": "class",
234 214
           "props": Object {
235
-            "children": <TextInput
236
-              allowFontScaling={true}
237
-              onChangeText={[Function]}
238
-              secureTextEntry={true}
215
+            "children": Array [
216
+              <Text
217
+                accessible={true}
218
+                allowFontScaling={true}
219
+                ellipsizeMode="tail"
220
+                style={
221
+                  Object {
222
+                    "marginVertical": 10,
223
+                  }
224
+                }
225
+              >
226
+                PIN:  
227
+              </Text>,
228
+              <TextInput
229
+                allowFontScaling={true}
230
+                onChangeText={[Function]}
231
+                placeholder=" Pin"
232
+                secureTextEntry={true}
233
+                style={
234
+                  Object {
235
+                    "alignItems": "center",
236
+                    "borderWidth": 1,
237
+                    "height": 35,
238
+                    "paddingHorizontal": 10,
239
+                    "width": 150,
240
+                  }
241
+                }
242
+                underlineColorAndroid="transparent"
243
+                value=""
244
+              />,
245
+            ],
246
+            "style": Object {
247
+              "flexDirection": "row",
248
+              "marginBottom": 20,
249
+              "marginRight": 32,
250
+            },
251
+          },
252
+          "ref": null,
253
+          "rendered": Array [
254
+            Object {
255
+              "instance": null,
256
+              "key": undefined,
257
+              "nodeType": "class",
258
+              "props": Object {
259
+                "accessible": true,
260
+                "allowFontScaling": true,
261
+                "children": "PIN:  ",
262
+                "ellipsizeMode": "tail",
263
+                "style": Object {
264
+                  "marginVertical": 10,
265
+                },
266
+              },
267
+              "ref": null,
268
+              "rendered": "PIN:  ",
269
+              "type": [Function],
270
+            },
271
+            Object {
272
+              "instance": null,
273
+              "key": undefined,
274
+              "nodeType": "class",
275
+              "props": Object {
276
+                "allowFontScaling": true,
277
+                "onChangeText": [Function],
278
+                "placeholder": " Pin",
279
+                "secureTextEntry": true,
280
+                "style": Object {
281
+                  "alignItems": "center",
282
+                  "borderWidth": 1,
283
+                  "height": 35,
284
+                  "paddingHorizontal": 10,
285
+                  "width": 150,
286
+                },
287
+                "underlineColorAndroid": "transparent",
288
+                "value": "",
289
+              },
290
+              "ref": null,
291
+              "rendered": null,
292
+              "type": [Function],
293
+            },
294
+          ],
295
+          "type": [Function],
296
+        },
297
+        Object {
298
+          "instance": null,
299
+          "key": undefined,
300
+          "nodeType": "class",
301
+          "props": Object {
302
+            "children": <Button
303
+              enabled={true}
304
+              name="Sign In"
305
+              onPress={[Function]}
239 306
               style={
240 307
                 Object {
241
-                  "height": 30,
242
-                  "width": 300,
308
+                  "alignItems": "center",
309
+                  "width": 150,
243 310
                 }
244 311
               }
245
-              underlineColorAndroid="rgb(0,163,158)"
246
-              value=""
247 312
             />,
248 313
             "style": Object {
249
-              "borderBottomWidth": 1,
250
-              "borderColor": "rgb(73,162,153)",
251
-              "flex": 1,
252
-              "marginBottom": 20,
314
+              "flexDirection": "row",
253 315
             },
254 316
           },
255 317
           "ref": null,
256 318
           "rendered": Object {
257 319
             "instance": null,
258 320
             "key": undefined,
259
-            "nodeType": "class",
321
+            "nodeType": "function",
260 322
             "props": Object {
261
-              "allowFontScaling": true,
262
-              "onChangeText": [Function],
263
-              "secureTextEntry": true,
323
+              "enabled": true,
324
+              "name": "Sign In",
325
+              "onPress": [Function],
264 326
               "style": Object {
265
-                "height": 30,
266
-                "width": 300,
327
+                "alignItems": "center",
328
+                "width": 150,
267 329
               },
268
-              "underlineColorAndroid": "rgb(0,163,158)",
269
-              "value": "",
270 330
             },
271 331
             "ref": null,
272 332
             "rendered": null,
@@ -274,21 +334,329 @@ ShallowWrapper {
274 334
           },
275 335
           "type": [Function],
276 336
         },
277
-        Object {
278
-          "instance": null,
279
-          "key": undefined,
280
-          "nodeType": "function",
281
-          "props": Object {
282
-            "enabled": true,
283
-            "name": "LOG IN",
284
-            "onPress": [Function],
285
-            "style": Object {},
337
+      ],
338
+      "type": [Function],
339
+    },
340
+    "type": [Function],
341
+  },
342
+  Symbol(enzyme.__nodes__): Array [
343
+    Object {
344
+      "instance": null,
345
+      "key": undefined,
346
+      "nodeType": "class",
347
+      "props": Object {
348
+        "behavior": "position",
349
+        "children": <View
350
+          style={
351
+            Object {
352
+              "alignItems": "center",
353
+              "backgroundColor": "#fff",
354
+            }
355
+          }
356
+        >
357
+          <Image
358
+            source={1}
359
+            style={
360
+              Object {
361
+                "height": 275,
362
+                "marginBottom": 50,
363
+                "marginTop": 75,
364
+                "width": 320,
365
+              }
366
+            }
367
+          />
368
+          <View
369
+            style={
370
+              Object {
371
+                "flexDirection": "row",
372
+                "marginBottom": 20,
373
+                "marginRight": 32,
374
+              }
375
+            }
376
+          >
377
+            <Text
378
+              accessible={true}
379
+              allowFontScaling={true}
380
+              ellipsizeMode="tail"
381
+              style={
382
+                Object {
383
+                  "marginVertical": 10,
384
+                }
385
+              }
386
+            >
387
+              PIN:  
388
+            </Text>
389
+            <TextInput
390
+              allowFontScaling={true}
391
+              onChangeText={[Function]}
392
+              placeholder=" Pin"
393
+              secureTextEntry={true}
394
+              style={
395
+                Object {
396
+                  "alignItems": "center",
397
+                  "borderWidth": 1,
398
+                  "height": 35,
399
+                  "paddingHorizontal": 10,
400
+                  "width": 150,
401
+                }
402
+              }
403
+              underlineColorAndroid="transparent"
404
+              value=""
405
+            />
406
+          </View>
407
+          <View
408
+            style={
409
+              Object {
410
+                "flexDirection": "row",
411
+              }
412
+            }
413
+          >
414
+            <Button
415
+              enabled={true}
416
+              name="Sign In"
417
+              onPress={[Function]}
418
+              style={
419
+                Object {
420
+                  "alignItems": "center",
421
+                  "width": 150,
422
+                }
423
+              }
424
+            />
425
+          </View>
426
+        </View>,
427
+        "keyboardVerticalOffset": 50,
428
+      },
429
+      "ref": null,
430
+      "rendered": Object {
431
+        "instance": null,
432
+        "key": undefined,
433
+        "nodeType": "class",
434
+        "props": Object {
435
+          "children": Array [
436
+            <Image
437
+              source={1}
438
+              style={
439
+                Object {
440
+                  "height": 275,
441
+                  "marginBottom": 50,
442
+                  "marginTop": 75,
443
+                  "width": 320,
444
+                }
445
+              }
446
+            />,
447
+            <View
448
+              style={
449
+                Object {
450
+                  "flexDirection": "row",
451
+                  "marginBottom": 20,
452
+                  "marginRight": 32,
453
+                }
454
+              }
455
+            >
456
+              <Text
457
+                accessible={true}
458
+                allowFontScaling={true}
459
+                ellipsizeMode="tail"
460
+                style={
461
+                  Object {
462
+                    "marginVertical": 10,
463
+                  }
464
+                }
465
+              >
466
+                PIN:  
467
+              </Text>
468
+              <TextInput
469
+                allowFontScaling={true}
470
+                onChangeText={[Function]}
471
+                placeholder=" Pin"
472
+                secureTextEntry={true}
473
+                style={
474
+                  Object {
475
+                    "alignItems": "center",
476
+                    "borderWidth": 1,
477
+                    "height": 35,
478
+                    "paddingHorizontal": 10,
479
+                    "width": 150,
480
+                  }
481
+                }
482
+                underlineColorAndroid="transparent"
483
+                value=""
484
+              />
485
+            </View>,
486
+            <View
487
+              style={
488
+                Object {
489
+                  "flexDirection": "row",
490
+                }
491
+              }
492
+            >
493
+              <Button
494
+                enabled={true}
495
+                name="Sign In"
496
+                onPress={[Function]}
497
+                style={
498
+                  Object {
499
+                    "alignItems": "center",
500
+                    "width": 150,
501
+                  }
502
+                }
503
+              />
504
+            </View>,
505
+          ],
506
+          "style": Object {
507
+            "alignItems": "center",
508
+            "backgroundColor": "#fff",
286 509
           },
287
-          "ref": null,
288
-          "rendered": null,
289
-          "type": [Function],
290 510
         },
291
-      ],
511
+        "ref": null,
512
+        "rendered": Array [
513
+          Object {
514
+            "instance": null,
515
+            "key": undefined,
516
+            "nodeType": "class",
517
+            "props": Object {
518
+              "source": 1,
519
+              "style": Object {
520
+                "height": 275,
521
+                "marginBottom": 50,
522
+                "marginTop": 75,
523
+                "width": 320,
524
+              },
525
+            },
526
+            "ref": null,
527
+            "rendered": null,
528
+            "type": [Function],
529
+          },
530
+          Object {
531
+            "instance": null,
532
+            "key": undefined,
533
+            "nodeType": "class",
534
+            "props": Object {
535
+              "children": Array [
536
+                <Text
537
+                  accessible={true}
538
+                  allowFontScaling={true}
539
+                  ellipsizeMode="tail"
540
+                  style={
541
+                    Object {
542
+                      "marginVertical": 10,
543
+                    }
544
+                  }
545
+                >
546
+                  PIN:  
547
+                </Text>,
548
+                <TextInput
549
+                  allowFontScaling={true}
550
+                  onChangeText={[Function]}
551
+                  placeholder=" Pin"
552
+                  secureTextEntry={true}
553
+                  style={
554
+                    Object {
555
+                      "alignItems": "center",
556
+                      "borderWidth": 1,
557
+                      "height": 35,
558
+                      "paddingHorizontal": 10,
559
+                      "width": 150,
560
+                    }
561
+                  }
562
+                  underlineColorAndroid="transparent"
563
+                  value=""
564
+                />,
565
+              ],
566
+              "style": Object {
567
+                "flexDirection": "row",
568
+                "marginBottom": 20,
569
+                "marginRight": 32,
570
+              },
571
+            },
572
+            "ref": null,
573
+            "rendered": Array [
574
+              Object {
575
+                "instance": null,
576
+                "key": undefined,
577
+                "nodeType": "class",
578
+                "props": Object {
579
+                  "accessible": true,
580
+                  "allowFontScaling": true,
581
+                  "children": "PIN:  ",
582
+                  "ellipsizeMode": "tail",
583
+                  "style": Object {
584
+                    "marginVertical": 10,
585
+                  },
586
+                },
587
+                "ref": null,
588
+                "rendered": "PIN:  ",
589
+                "type": [Function],
590
+              },
591
+              Object {
592
+                "instance": null,
593
+                "key": undefined,
594
+                "nodeType": "class",
595
+                "props": Object {
596
+                  "allowFontScaling": true,
597
+                  "onChangeText": [Function],
598
+                  "placeholder": " Pin",
599
+                  "secureTextEntry": true,
600
+                  "style": Object {
601
+                    "alignItems": "center",
602
+                    "borderWidth": 1,
603
+                    "height": 35,
604
+                    "paddingHorizontal": 10,
605
+                    "width": 150,
606
+                  },
607
+                  "underlineColorAndroid": "transparent",
608
+                  "value": "",
609
+                },
610
+                "ref": null,
611
+                "rendered": null,
612
+                "type": [Function],
613
+              },
614
+            ],
615
+            "type": [Function],
616
+          },
617
+          Object {
618
+            "instance": null,
619
+            "key": undefined,
620
+            "nodeType": "class",
621
+            "props": Object {
622
+              "children": <Button
623
+                enabled={true}
624
+                name="Sign In"
625
+                onPress={[Function]}
626
+                style={
627
+                  Object {
628
+                    "alignItems": "center",
629
+                    "width": 150,
630
+                  }
631
+                }
632
+              />,
633
+              "style": Object {
634
+                "flexDirection": "row",
635
+              },
636
+            },
637
+            "ref": null,
638
+            "rendered": Object {
639
+              "instance": null,
640
+              "key": undefined,
641
+              "nodeType": "function",
642
+              "props": Object {
643
+                "enabled": true,
644
+                "name": "Sign In",
645
+                "onPress": [Function],
646
+                "style": Object {
647
+                  "alignItems": "center",
648
+                  "width": 150,
649
+                },
650
+              },
651
+              "ref": null,
652
+              "rendered": null,
653
+              "type": [Function],
654
+            },
655
+            "type": [Function],
656
+          },
657
+        ],
658
+        "type": [Function],
659
+      },
292 660
       "type": [Function],
293 661
     },
294 662
   ],