Skip to content

Commit e66bf82

Browse files
committed
test: update snapshotes
1 parent 4adb254 commit e66bf82

File tree

6 files changed

+100
-11
lines changed

6 files changed

+100
-11
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Snapshot Badge renders correctly 1`] = `
4+
<span
5+
className="root neutral"
6+
>
7+
Badge
8+
</span>
9+
`;
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`Snapshot FormField renders correctly 1`] = `
4+
<div
5+
className="root default"
6+
>
7+
<div
8+
className="content"
9+
>
10+
FormField
11+
</div>
12+
</div>
13+
`;

packages/components/form/specs/__snapshots__/index.snapshot.test.tsx.snap

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,27 +7,70 @@ exports[`Snapshot Form renders correctly 1`] = `
77
<div
88
className="root default"
99
>
10+
<label
11+
className="root p bold small label"
12+
htmlFor="aaa"
13+
>
14+
Email Address
15+
</label>
1016
<div
1117
className="content"
1218
>
1319
<input
1420
className="root"
1521
onChange={[Function]}
16-
placeholder="Email Address"
22+
placeholder="john-doe@aaa.com"
1723
value=""
1824
/>
1925
</div>
26+
<p
27+
className="root p small description"
28+
>
29+
Your work email address
30+
</p>
2031
</div>
2132
<div
2233
className="root default"
2334
>
35+
<label
36+
className="root p bold small label"
37+
htmlFor="aaa"
38+
>
39+
Password
40+
</label>
41+
<div
42+
className="content"
43+
>
44+
<input
45+
className="root"
46+
onChange={[Function]}
47+
placeholder="Strong password"
48+
type="password"
49+
value=""
50+
/>
51+
</div>
52+
<p
53+
className="root p small description"
54+
>
55+
Must contain at least one number and one uppercase and lowercase letter, and at least 8 or more characters
56+
</p>
57+
</div>
58+
<div
59+
className="root default"
60+
>
61+
<label
62+
className="root p bold small label"
63+
htmlFor="aaa"
64+
>
65+
Repeat Password
66+
</label>
2467
<div
2568
className="content"
2669
>
2770
<input
2871
className="root"
2972
onChange={[Function]}
30-
placeholder="Password"
73+
placeholder="Repeat password"
3174
type="password"
3275
value=""
3376
/>
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Snapshot Input renders correctly 1`] = `
4-
<input
5-
className="root"
6-
/>
4+
<div
5+
className="root default"
6+
>
7+
<div
8+
className="content"
9+
>
10+
<input
11+
className="root"
12+
/>
13+
</div>
14+
</div>
715
`;
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Snapshot Select renders correctly 1`] = `
4-
<select
5-
className="root"
6-
/>
4+
<div
5+
className="root default"
6+
>
7+
<div
8+
className="content"
9+
>
10+
<select
11+
className="root"
12+
/>
13+
</div>
14+
</div>
715
`;
Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
// Jest Snapshot v1, https://goo.gl/fbAQLP
22

33
exports[`Snapshot Textarea renders correctly 1`] = `
4-
<textarea
5-
className="root"
6-
/>
4+
<div
5+
className="root default"
6+
>
7+
<div
8+
className="content"
9+
>
10+
<textarea
11+
className="root"
12+
/>
13+
</div>
14+
</div>
715
`;

0 commit comments

Comments
 (0)