Skip to content

Commit 4ccd795

Browse files
committed
snapshots corrected
1 parent c1989ad commit 4ccd795

File tree

3 files changed

+128
-40
lines changed

3 files changed

+128
-40
lines changed

src/components/Card/__snapshots__/Card.test.tsx.snap

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,6 @@ exports[`Card Renders the UI snapshot correctly 2`] = `
114114
id="link-online"
115115
rel={null}
116116
target={null}
117-
type="buttonPrimary"
118117
>
119118
Read Online
120119
</a>
@@ -124,7 +123,6 @@ exports[`Card Renders the UI snapshot correctly 2`] = `
124123
id="link-icon"
125124
rel={null}
126125
target={null}
127-
type="action"
128126
>
129127
<svg
130128
aria-hidden={true}
@@ -248,7 +246,6 @@ exports[`Card Renders the UI snapshot correctly 4`] = `
248246
id="link-online"
249247
rel={null}
250248
target={null}
251-
type="buttonPrimary"
252249
>
253250
Read Online
254251
</a>
@@ -258,7 +255,6 @@ exports[`Card Renders the UI snapshot correctly 4`] = `
258255
id="link-icon"
259256
rel={null}
260257
target={null}
261-
type="action"
262258
>
263259
<svg
264260
aria-hidden={true}
@@ -319,7 +315,6 @@ exports[`Card Renders the UI snapshot correctly 5`] = `
319315
id="link-online"
320316
rel={null}
321317
target={null}
322-
type="buttonPrimary"
323318
>
324319
Read Online
325320
</a>
@@ -329,7 +324,6 @@ exports[`Card Renders the UI snapshot correctly 5`] = `
329324
id="link-icon"
330325
rel={null}
331326
target={null}
332-
type="action"
333327
>
334328
<svg
335329
aria-hidden={true}

src/components/NewsletterSignup/__snapshots__/NewsletterSignup.test.tsx.snap

Lines changed: 128 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,24 @@ exports[`NewsletterSignup Snapshots Renders the bad email UI snapshot correctly
1515
<a
1616
className="chakra-link css-1xdhyk6"
1717
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
18-
rel={null}
19-
target={null}
20-
type="external"
18+
rel="nofollow noopener noreferrer"
19+
target="_blank"
2120
>
2221
Privacy Policy
22+
<span
23+
className="css-0"
24+
>
25+
This link opens in a new window
26+
</span>
27+
<svg
28+
aria-hidden={true}
29+
className="chakra-icon css-1vgifmd"
30+
data-file-name="SvgActionLaunch"
31+
focusable={false}
32+
id="link-privacy-policy-external-icon"
33+
role="img"
34+
title="External link"
35+
/>
2336
</a>
2437
</div>
2538
<div
@@ -127,11 +140,24 @@ exports[`NewsletterSignup Snapshots Renders the custom error state snapshot corr
127140
<a
128141
className="chakra-link css-1xdhyk6"
129142
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
130-
rel={null}
131-
target={null}
132-
type="external"
143+
rel="nofollow noopener noreferrer"
144+
target="_blank"
133145
>
134146
Privacy Policy
147+
<span
148+
className="css-0"
149+
>
150+
This link opens in a new window
151+
</span>
152+
<svg
153+
aria-hidden={true}
154+
className="chakra-icon css-1vgifmd"
155+
data-file-name="SvgActionLaunch"
156+
focusable={false}
157+
id="link-privacy-policy-external-icon"
158+
role="img"
159+
title="External link"
160+
/>
135161
</a>
136162
</div>
137163
<div
@@ -186,11 +212,24 @@ exports[`NewsletterSignup Snapshots Renders the default confirmation state snaps
186212
<a
187213
className="chakra-link css-1xdhyk6"
188214
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
189-
rel={null}
190-
target={null}
191-
type="external"
215+
rel="nofollow noopener noreferrer"
216+
target="_blank"
192217
>
193218
Privacy Policy
219+
<span
220+
className="css-0"
221+
>
222+
This link opens in a new window
223+
</span>
224+
<svg
225+
aria-hidden={true}
226+
className="chakra-icon css-1vgifmd"
227+
data-file-name="SvgActionLaunch"
228+
focusable={false}
229+
id="link-privacy-policy-external-icon"
230+
role="img"
231+
title="External link"
232+
/>
194233
</a>
195234
</div>
196235
<div
@@ -242,11 +281,24 @@ exports[`NewsletterSignup Snapshots Renders the default error state snapshot cor
242281
<a
243282
className="chakra-link css-1xdhyk6"
244283
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
245-
rel={null}
246-
target={null}
247-
type="external"
284+
rel="nofollow noopener noreferrer"
285+
target="_blank"
248286
>
249287
Privacy Policy
288+
<span
289+
className="css-0"
290+
>
291+
This link opens in a new window
292+
</span>
293+
<svg
294+
aria-hidden={true}
295+
className="chakra-icon css-1vgifmd"
296+
data-file-name="SvgActionLaunch"
297+
focusable={false}
298+
id="link-privacy-policy-external-icon"
299+
role="img"
300+
title="External link"
301+
/>
250302
</a>
251303
</div>
252304
<div
@@ -293,11 +345,24 @@ exports[`NewsletterSignup Snapshots Renders the default form UI snapshot correct
293345
<a
294346
className="chakra-link css-1xdhyk6"
295347
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
296-
rel={null}
297-
target={null}
298-
type="external"
348+
rel="nofollow noopener noreferrer"
349+
target="_blank"
299350
>
300351
Privacy Policy
352+
<span
353+
className="css-0"
354+
>
355+
This link opens in a new window
356+
</span>
357+
<svg
358+
aria-hidden={true}
359+
className="chakra-icon css-1vgifmd"
360+
data-file-name="SvgActionLaunch"
361+
focusable={false}
362+
id="link-privacy-policy-external-icon"
363+
role="img"
364+
title="External link"
365+
/>
301366
</a>
302367
</div>
303368
<div
@@ -392,11 +457,24 @@ exports[`NewsletterSignup Snapshots Renders the form UI with description snapsho
392457
<a
393458
className="chakra-link css-1xdhyk6"
394459
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
395-
rel={null}
396-
target={null}
397-
type="external"
460+
rel="nofollow noopener noreferrer"
461+
target="_blank"
398462
>
399463
Privacy Policy
464+
<span
465+
className="css-0"
466+
>
467+
This link opens in a new window
468+
</span>
469+
<svg
470+
aria-hidden={true}
471+
className="chakra-icon css-1vgifmd"
472+
data-file-name="SvgActionLaunch"
473+
focusable={false}
474+
id="link-privacy-policy-external-icon"
475+
role="img"
476+
title="External link"
477+
/>
400478
</a>
401479
</div>
402480
<div
@@ -486,11 +564,24 @@ exports[`NewsletterSignup Snapshots Renders the form UI with formHelperText snap
486564
<a
487565
className="chakra-link css-1xdhyk6"
488566
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
489-
rel={null}
490-
target={null}
491-
type="external"
567+
rel="nofollow noopener noreferrer"
568+
target="_blank"
492569
>
493570
Privacy Policy
571+
<span
572+
className="css-0"
573+
>
574+
This link opens in a new window
575+
</span>
576+
<svg
577+
aria-hidden={true}
578+
className="chakra-icon css-1vgifmd"
579+
data-file-name="SvgActionLaunch"
580+
focusable={false}
581+
id="link-privacy-policy-external-icon"
582+
role="img"
583+
title="External link"
584+
/>
494585
</a>
495586
</div>
496587
<div
@@ -597,11 +688,24 @@ exports[`NewsletterSignup Snapshots Renders the submitting state snapshot correc
597688
<a
598689
className="chakra-link css-1xdhyk6"
599690
href="https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
600-
rel={null}
601-
target={null}
602-
type="external"
691+
rel="nofollow noopener noreferrer"
692+
target="_blank"
603693
>
604694
Privacy Policy
695+
<span
696+
className="css-0"
697+
>
698+
This link opens in a new window
699+
</span>
700+
<svg
701+
aria-hidden={true}
702+
className="chakra-icon css-1vgifmd"
703+
data-file-name="SvgActionLaunch"
704+
focusable={false}
705+
id="link-privacy-policy-external-icon"
706+
role="img"
707+
title="External link"
708+
/>
605709
</a>
606710
</div>
607711
<div

src/components/Pagination/__snapshots__/Pagination.test.tsx.snap

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 1`] = `
2020
id="firstPage-Previous"
2121
rel={null}
2222
target={null}
23-
type="action"
2423
>
2524
<svg
2625
aria-hidden={true}
@@ -130,7 +129,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 1`] = `
130129
id="firstPage-Next"
131130
rel={null}
132131
target={null}
133-
type="action"
134132
>
135133
<span
136134
className="css-70cl0f"
@@ -179,7 +177,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 2`] = `
179177
id="lastPage-Previous"
180178
rel={null}
181179
target={null}
182-
type="action"
183180
>
184181
<svg
185182
aria-hidden={true}
@@ -289,7 +286,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 2`] = `
289286
id="lastPage-Next"
290287
rel={null}
291288
target={null}
292-
type="action"
293289
>
294290
<span
295291
className="css-70cl0f"
@@ -338,7 +334,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 3`] = `
338334
id="middlePage-Previous"
339335
rel={null}
340336
target={null}
341-
type="action"
342337
>
343338
<svg
344339
aria-hidden={true}
@@ -439,7 +434,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 3`] = `
439434
id="middlePage-Next"
440435
rel={null}
441436
target={null}
442-
type="action"
443437
>
444438
<span
445439
className="css-70cl0f"
@@ -488,7 +482,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 4`] = `
488482
id="chakra-Previous"
489483
rel={null}
490484
target={null}
491-
type="action"
492485
>
493486
<svg
494487
aria-hidden={true}
@@ -598,7 +591,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 4`] = `
598591
id="chakra-Next"
599592
rel={null}
600593
target={null}
601-
type="action"
602594
>
603595
<span
604596
className="css-70cl0f"
@@ -648,7 +640,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 5`] = `
648640
id="props-Previous"
649641
rel={null}
650642
target={null}
651-
type="action"
652643
>
653644
<svg
654645
aria-hidden={true}
@@ -758,7 +749,6 @@ exports[`Pagination Rendering renders the UI snapshot correctly 5`] = `
758749
id="props-Next"
759750
rel={null}
760751
target={null}
761-
type="action"
762752
>
763753
<span
764754
className="css-70cl0f"

0 commit comments

Comments
 (0)