Skip to content

Commit 1981e5a

Browse files
committed
Update tests.
1 parent 7610282 commit 1981e5a

2 files changed

Lines changed: 419 additions & 0 deletions

File tree

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
// Jest Snapshot v1, https://goo.gl/fbAQLP
2+
3+
exports[`OptIn should render correctly 1`] = `
4+
<div>
5+
<div
6+
class="googlesitekit-opt-in googlesitekit-opt-in-test"
7+
>
8+
<div
9+
class="mdc-form-field"
10+
>
11+
<div
12+
class="mdc-checkbox"
13+
>
14+
<input
15+
class="mdc-checkbox__native-control"
16+
id="googlesitekit-opt-in-test"
17+
name="optInTest"
18+
type="checkbox"
19+
value="1"
20+
/>
21+
<div
22+
class="mdc-checkbox__background"
23+
>
24+
<svg
25+
class="mdc-checkbox__checkmark"
26+
viewBox="0 0 12 9"
27+
>
28+
<path
29+
class="mdc-checkbox__checkmark-path"
30+
d="M2.08301 5.28834L3.55703 7.29507C4.24647 8.23368 5.5034 8.23368 6.19285 7.29507L10.083 1.99902"
31+
fill="none"
32+
stroke="none"
33+
/>
34+
</svg>
35+
<div
36+
class="mdc-checkbox__mixedmark"
37+
/>
38+
</div>
39+
</div>
40+
<label
41+
for="googlesitekit-opt-in-test"
42+
>
43+
<span>
44+
Help us improve Site Kit by sharing anonymous usage data.
45+
</span>
46+
47+
<span>
48+
All collected data is treated in accordance with the
49+
<a
50+
aria-label="Google Privacy Policy (opens in a new tab)"
51+
class="googlesitekit-cta-link"
52+
href="https://policies.google.com/privacy"
53+
rel="noopener noreferrer"
54+
target="_blank"
55+
>
56+
<span
57+
class="googlesitekit-cta-link__contents"
58+
>
59+
Google Privacy Policy
60+
</span>
61+
<span
62+
class="googlesitekit-icon-wrapper"
63+
style="margin-left: 5px;"
64+
>
65+
<svg />
66+
</span>
67+
</a>
68+
</span>
69+
</label>
70+
71+
</div>
72+
</div>
73+
</div>
74+
`;
75+
76+
exports[`OptIn should show a spinner when tracking is loading 1`] = `
77+
<div>
78+
<div
79+
class="googlesitekit-opt-in"
80+
>
81+
<div
82+
class="mdc-form-field"
83+
>
84+
<div
85+
class="mdc-checkbox"
86+
>
87+
<span
88+
class="spinner"
89+
style="display: inline-block; float: none; visibility: visible; margin: 0px;"
90+
/>
91+
</div>
92+
<label
93+
for="googlesitekit-opt-in"
94+
>
95+
<span>
96+
Help us improve Site Kit by sharing anonymous usage data.
97+
</span>
98+
99+
<span>
100+
All collected data is treated in accordance with the
101+
<a
102+
aria-label="Google Privacy Policy (opens in a new tab)"
103+
class="googlesitekit-cta-link"
104+
href="https://policies.google.com/privacy"
105+
rel="noopener noreferrer"
106+
target="_blank"
107+
>
108+
<span
109+
class="googlesitekit-cta-link__contents"
110+
>
111+
Google Privacy Policy
112+
</span>
113+
<span
114+
class="googlesitekit-icon-wrapper"
115+
style="margin-left: 5px;"
116+
>
117+
<svg />
118+
</span>
119+
</a>
120+
</span>
121+
</label>
122+
123+
</div>
124+
</div>
125+
</div>
126+
`;

0 commit comments

Comments
 (0)