Skip to content

Commit 8fcb33a

Browse files
committed
test: update snapshots
Add new App snap
1 parent d836bf8 commit 8fcb33a

File tree

2 files changed

+222
-1
lines changed

2 files changed

+222
-1
lines changed
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`renders without crashing 1`] = `
4+
<div>
5+
<div
6+
class="sc-jWBwVP eMzqrb"
7+
>
8+
<div
9+
class="ant-card sc-brqgnP jqshtE ant-card-bordered"
10+
>
11+
<div
12+
class="ant-card-body"
13+
>
14+
<div
15+
class="sc-cMljjf bqDeCs"
16+
>
17+
<img
18+
alt="React Native upgrade helper logo"
19+
class="sc-jAaTju iQnFlP"
20+
src="logo.svg"
21+
title="React Native upgrade helper logo"
22+
/>
23+
<a
24+
href="https://react-native-community.github.io/upgrade-helper"
25+
>
26+
<h1
27+
class="sc-jDwBTQ kdxkQr"
28+
>
29+
React Native upgrade helper
30+
</h1>
31+
</a>
32+
<div
33+
class="sc-gPEVay bKLGYK"
34+
>
35+
<div>
36+
ReactGitHubBtn -
37+
Star
38+
</div>
39+
</div>
40+
<button
41+
class="ant-btn ant-btn-icon-only"
42+
type="button"
43+
>
44+
<i
45+
aria-label="icon: setting"
46+
class="anticon anticon-setting"
47+
>
48+
<svg
49+
aria-hidden="true"
50+
class=""
51+
data-icon="setting"
52+
fill="currentColor"
53+
focusable="false"
54+
height="1em"
55+
viewBox="64 64 896 896"
56+
width="1em"
57+
>
58+
<path
59+
d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"
60+
/>
61+
</svg>
62+
</i>
63+
</button>
64+
</div>
65+
<div
66+
class="sc-htpNat hqmgw"
67+
>
68+
<div
69+
class="sc-bdVaJa UoSJW"
70+
>
71+
<h4>
72+
What's your current React Native version?
73+
</h4>
74+
<div
75+
class="ant-select-lg sc-bxivhb iYdHlP sc-bwzfXH jwfMIB ant-select ant-select-enabled ant-select-loading"
76+
>
77+
<div
78+
aria-autocomplete="list"
79+
aria-controls="test-uuid"
80+
aria-expanded="false"
81+
aria-haspopup="true"
82+
class="ant-select-selection
83+
ant-select-selection--single"
84+
role="combobox"
85+
tabindex="0"
86+
>
87+
<div
88+
class="ant-select-selection__rendered"
89+
>
90+
<div
91+
class="ant-select-selection-selected-value"
92+
style="display: block; opacity: 1;"
93+
title=""
94+
/>
95+
</div>
96+
<span
97+
class="ant-select-arrow"
98+
style="user-select: none;"
99+
unselectable="on"
100+
>
101+
<i
102+
aria-label="icon: loading"
103+
class="anticon anticon-loading"
104+
>
105+
<svg
106+
aria-hidden="true"
107+
class="anticon-spin"
108+
data-icon="loading"
109+
fill="currentColor"
110+
focusable="false"
111+
height="1em"
112+
viewBox="0 0 1024 1024"
113+
width="1em"
114+
>
115+
<path
116+
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
117+
/>
118+
</svg>
119+
</i>
120+
</span>
121+
</div>
122+
</div>
123+
</div>
124+
<div
125+
class="sc-bdVaJa UoSJW"
126+
>
127+
<h4>
128+
To which version would you like to upgrade?
129+
</h4>
130+
<div
131+
class="ant-select-lg sc-ifAKCX dTveGH sc-bwzfXH jwfMIB ant-select ant-select-enabled ant-select-loading"
132+
>
133+
<div
134+
aria-autocomplete="list"
135+
aria-controls="test-uuid"
136+
aria-expanded="false"
137+
aria-haspopup="true"
138+
class="ant-select-selection
139+
ant-select-selection--single"
140+
role="combobox"
141+
tabindex="0"
142+
>
143+
<div
144+
class="ant-select-selection__rendered"
145+
>
146+
<div
147+
class="ant-select-selection-selected-value"
148+
style="display: block; opacity: 1;"
149+
title=""
150+
/>
151+
</div>
152+
<span
153+
class="ant-select-arrow"
154+
style="user-select: none;"
155+
unselectable="on"
156+
>
157+
<i
158+
aria-label="icon: loading"
159+
class="anticon anticon-loading"
160+
>
161+
<svg
162+
aria-hidden="true"
163+
class="anticon-spin"
164+
data-icon="loading"
165+
fill="currentColor"
166+
focusable="false"
167+
height="1em"
168+
viewBox="0 0 1024 1024"
169+
width="1em"
170+
>
171+
<path
172+
d="M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 0 0-94.3-139.9 437.71 437.71 0 0 0-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"
173+
/>
174+
</svg>
175+
</i>
176+
</span>
177+
</div>
178+
</div>
179+
</div>
180+
</div>
181+
<div
182+
class="sc-EHOje jWoLok"
183+
>
184+
<button
185+
class="ant-btn ant-btn-primary ant-btn-lg"
186+
type="button"
187+
>
188+
<span>
189+
Show me how to upgrade!
190+
</span>
191+
</button>
192+
</div>
193+
</div>
194+
</div>
195+
</div>
196+
</div>
197+
`;

src/__tests__/components/__snapshots__/Home.spec.js.snap

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,37 @@ exports[`renders without crashing 1`] = `
3030
</h1>
3131
</a>
3232
<div
33-
class="sc-gPEVay iMFRcs"
33+
class="sc-gPEVay bKLGYK"
3434
>
3535
<div>
3636
ReactGitHubBtn -
3737
Star
3838
</div>
3939
</div>
40+
<button
41+
class="ant-btn ant-btn-icon-only"
42+
type="button"
43+
>
44+
<i
45+
aria-label="icon: setting"
46+
class="anticon anticon-setting"
47+
>
48+
<svg
49+
aria-hidden="true"
50+
class=""
51+
data-icon="setting"
52+
fill="currentColor"
53+
focusable="false"
54+
height="1em"
55+
viewBox="64 64 896 896"
56+
width="1em"
57+
>
58+
<path
59+
d="M924.8 625.7l-65.5-56c3.1-19 4.7-38.4 4.7-57.8s-1.6-38.8-4.7-57.8l65.5-56a32.03 32.03 0 0 0 9.3-35.2l-.9-2.6a443.74 443.74 0 0 0-79.7-137.9l-1.8-2.1a32.12 32.12 0 0 0-35.1-9.5l-81.3 28.9c-30-24.6-63.5-44-99.7-57.6l-15.7-85a32.05 32.05 0 0 0-25.8-25.7l-2.7-.5c-52.1-9.4-106.9-9.4-159 0l-2.7.5a32.05 32.05 0 0 0-25.8 25.7l-15.8 85.4a351.86 351.86 0 0 0-99 57.4l-81.9-29.1a32 32 0 0 0-35.1 9.5l-1.8 2.1a446.02 446.02 0 0 0-79.7 137.9l-.9 2.6c-4.5 12.5-.8 26.5 9.3 35.2l66.3 56.6c-3.1 18.8-4.6 38-4.6 57.1 0 19.2 1.5 38.4 4.6 57.1L99 625.5a32.03 32.03 0 0 0-9.3 35.2l.9 2.6c18.1 50.4 44.9 96.9 79.7 137.9l1.8 2.1a32.12 32.12 0 0 0 35.1 9.5l81.9-29.1c29.8 24.5 63.1 43.9 99 57.4l15.8 85.4a32.05 32.05 0 0 0 25.8 25.7l2.7.5a449.4 449.4 0 0 0 159 0l2.7-.5a32.05 32.05 0 0 0 25.8-25.7l15.7-85a350 350 0 0 0 99.7-57.6l81.3 28.9a32 32 0 0 0 35.1-9.5l1.8-2.1c34.8-41.1 61.6-87.5 79.7-137.9l.9-2.6c4.5-12.3.8-26.3-9.3-35zM788.3 465.9c2.5 15.1 3.8 30.6 3.8 46.1s-1.3 31-3.8 46.1l-6.6 40.1 74.7 63.9a370.03 370.03 0 0 1-42.6 73.6L721 702.8l-31.4 25.8c-23.9 19.6-50.5 35-79.3 45.8l-38.1 14.3-17.9 97a377.5 377.5 0 0 1-85 0l-17.9-97.2-37.8-14.5c-28.5-10.8-55-26.2-78.7-45.7l-31.4-25.9-93.4 33.2c-17-22.9-31.2-47.6-42.6-73.6l75.5-64.5-6.5-40c-2.4-14.9-3.7-30.3-3.7-45.5 0-15.3 1.2-30.6 3.7-45.5l6.5-40-75.5-64.5c11.3-26.1 25.6-50.7 42.6-73.6l93.4 33.2 31.4-25.9c23.7-19.5 50.2-34.9 78.7-45.7l37.9-14.3 17.9-97.2c28.1-3.2 56.8-3.2 85 0l17.9 97 38.1 14.3c28.7 10.8 55.4 26.2 79.3 45.8l31.4 25.8 92.8-32.9c17 22.9 31.2 47.6 42.6 73.6L781.8 426l6.5 39.9zM512 326c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm79.2 255.2A111.6 111.6 0 0 1 512 614c-29.9 0-58-11.7-79.2-32.8A111.6 111.6 0 0 1 400 502c0-29.9 11.7-58 32.8-79.2C454 401.6 482.1 390 512 390c29.9 0 58 11.6 79.2 32.8A111.6 111.6 0 0 1 624 502c0 29.9-11.7 58-32.8 79.2z"
60+
/>
61+
</svg>
62+
</i>
63+
</button>
4064
</div>
4165
<div
4266
class="sc-htpNat hqmgw"

0 commit comments

Comments
 (0)