@comicrelief/component-library 8.74.2 → 8.75.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +578 -573
- package/dist/index.es.js +5423 -5368
- package/package.json +1 -1
- package/src/components/Atoms/AmbientVideo/AmbientVideo.js +4 -3
- package/src/components/Atoms/Button/Button.js +1 -1
- package/src/components/Atoms/Button/Button.test.js +1 -0
- package/src/components/Atoms/ButtonWithStates/ButtonWithStates.js +2 -2
- package/src/components/Atoms/Confetti/Confetti.js +1 -1
- package/src/components/Atoms/Icons/IconsExample.jsx +2 -1
- package/src/components/Atoms/Icons/Post.js +37 -0
- package/src/components/Atoms/Icons/index.js +1 -0
- package/src/components/Atoms/Icons/post.svg +3 -0
- package/src/components/Atoms/InfoMessage/__snapshots__/InfoMessage.test.js.snap +0 -1
- package/src/components/Atoms/Link/Link.style.js +0 -1
- package/src/components/Atoms/Link/Link.test.js +0 -3
- package/src/components/Atoms/Pagination/Pagination.js +1 -0
- package/src/components/Atoms/Pagination/__snapshots__/Pagination.test.js.snap +110 -0
- package/src/components/Atoms/Picture/Picture.js +4 -0
- package/src/components/Atoms/Picture/Picture.test.js +4 -0
- package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -2
- package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +15 -0
- package/src/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +6 -1
- package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +12 -0
- package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +4 -2
- package/src/components/Molecules/Box/__snapshots__/Box.test.js.snap +2 -0
- package/src/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.js +4 -2
- package/src/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +40 -4
- package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.js +2 -1
- package/src/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +6 -2
- package/src/components/Molecules/Card/Card.js +3 -1
- package/src/components/Molecules/Card/__snapshots__/Card.test.js.snap +8 -0
- package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +4 -0
- package/src/components/Molecules/Countdown/Countdown.js +5 -5
- package/src/components/Molecules/Descriptor/Descriptor.test.js +221 -221
- package/src/components/Molecules/DoubleCopy/DoubleCopy.js +3 -3
- package/src/components/Molecules/DoubleCopy/DoubleCopy.test.js +3 -0
- package/src/components/Molecules/EmailSignUp/EmailSignUp.js +8 -7
- package/src/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +8 -0
- package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -1
- package/src/components/Molecules/PartnerLink/PartnerLink.test.js +2 -1
- package/src/components/Molecules/PictureOrVideo/__snapshots__/PictureOrVideo.test.js.snap +10 -0
- package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +4 -0
- package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +2 -0
- package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +8 -4
- package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +12 -0
- package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +2 -0
- package/src/components/Molecules/StatsSlice/StatsSlice.js +2 -1
- package/src/components/Molecules/StatsSlice/_StatNode.js +7 -6
- package/src/components/Molecules/StatsSlice/__snapshots__/StatsSlice.test.js.snap +28 -0
- package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +2 -0
- package/src/components/Organisms/CookieBanner/CookieBanner.test.js +0 -1
- package/src/components/Organisms/DynamicGallery/DynamicGallery.js +4 -3
- package/src/components/Organisms/DynamicGallery/_DynamicGalleryColumn.js +4 -2
- package/src/components/Organisms/DynamicGallery/_Lightbox.js +11 -8
- package/src/components/Organisms/DynamicGallery/__snapshots__/DynamicGallery.test.js.snap +56 -10
- package/src/components/Organisms/EmailBanner/__snapshots__/EmailBanner.test.js.snap +8 -0
- package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +2 -0
- package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +5 -1
- package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +62 -24
- package/src/components/Organisms/Membership/Membership.test.js +2 -0
- package/src/index.js +2 -0
|
@@ -105,6 +105,7 @@ const Picture = ({
|
|
|
105
105
|
$nonObjFitImage={nonObjFitImage}
|
|
106
106
|
$objFitState={objFitState}
|
|
107
107
|
{...rest}
|
|
108
|
+
data-testid="PictureWrapper"
|
|
108
109
|
>
|
|
109
110
|
<Image
|
|
110
111
|
key={image}
|
|
@@ -116,6 +117,7 @@ const Picture = ({
|
|
|
116
117
|
className="lazyload"
|
|
117
118
|
$objFitState={objFitState}
|
|
118
119
|
onLoad={onLoad}
|
|
120
|
+
data-testid="Picture"
|
|
119
121
|
/>
|
|
120
122
|
</Wrapper>
|
|
121
123
|
);
|
|
@@ -130,6 +132,7 @@ const Picture = ({
|
|
|
130
132
|
$nonObjFitImage={nonObjFitImage}
|
|
131
133
|
$objFitState={objFitState}
|
|
132
134
|
{...rest}
|
|
135
|
+
data-testid="PictureWrapper"
|
|
133
136
|
>
|
|
134
137
|
<Image
|
|
135
138
|
alt={alt}
|
|
@@ -146,6 +149,7 @@ const Picture = ({
|
|
|
146
149
|
$objFitState={objFitState}
|
|
147
150
|
$smallBreakpointRowLayout={smallBreakpointRowLayout}
|
|
148
151
|
$mediumBreakpointRowLayout={mediumBreakpointRowLayout}
|
|
152
|
+
data-testid="Picture"
|
|
149
153
|
/>
|
|
150
154
|
</Wrapper>
|
|
151
155
|
);
|
|
@@ -29,6 +29,7 @@ it('renders correctly', () => {
|
|
|
29
29
|
|
|
30
30
|
<div
|
|
31
31
|
className="c0 lazyload"
|
|
32
|
+
data-testid="PictureWrapper"
|
|
32
33
|
>
|
|
33
34
|
<img
|
|
34
35
|
alt="Test images"
|
|
@@ -37,6 +38,7 @@ it('renders correctly', () => {
|
|
|
37
38
|
data-sizes="auto"
|
|
38
39
|
data-src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
39
40
|
data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
|
|
41
|
+
data-testid="Picture"
|
|
40
42
|
src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
41
43
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
42
44
|
/>
|
|
@@ -73,6 +75,7 @@ it('renders correctly with custom props', () => {
|
|
|
73
75
|
|
|
74
76
|
<div
|
|
75
77
|
className="c0 lazyload"
|
|
78
|
+
data-testid="PictureWrapper"
|
|
76
79
|
>
|
|
77
80
|
<img
|
|
78
81
|
alt="Test images"
|
|
@@ -81,6 +84,7 @@ it('renders correctly with custom props', () => {
|
|
|
81
84
|
data-sizes="auto"
|
|
82
85
|
data-src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
83
86
|
data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
|
|
87
|
+
data-testid="Picture"
|
|
84
88
|
src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
85
89
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
86
90
|
/>
|
|
@@ -79,7 +79,7 @@ const SocialIcons = ({
|
|
|
79
79
|
: ['facebook', 'instagram', 'twitter', 'youtube'];
|
|
80
80
|
|
|
81
81
|
return (
|
|
82
|
-
<StyledList $newStyle={newStyle}>
|
|
82
|
+
<StyledList $newStyle={newStyle} data-testid="SocialIconsList">
|
|
83
83
|
{brandsToShow
|
|
84
84
|
.filter(brand => shouldShowIcon(brand))
|
|
85
85
|
.map(brand => {
|
|
@@ -92,7 +92,7 @@ const SocialIcons = ({
|
|
|
92
92
|
return null;
|
|
93
93
|
}
|
|
94
94
|
return (
|
|
95
|
-
<StyledItem key={brand} $newStyle={newStyle}>
|
|
95
|
+
<StyledItem key={brand} $newStyle={newStyle} data-testid={`SocialIcon-${brand}`}>
|
|
96
96
|
<StyledIcon
|
|
97
97
|
target={target}
|
|
98
98
|
icon={icon}
|
|
@@ -55,9 +55,11 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
55
55
|
|
|
56
56
|
<ul
|
|
57
57
|
className="c0"
|
|
58
|
+
data-testid="SocialIconsList"
|
|
58
59
|
>
|
|
59
60
|
<li
|
|
60
61
|
className="c1"
|
|
62
|
+
data-testid="SocialIcon-facebook"
|
|
61
63
|
>
|
|
62
64
|
<a
|
|
63
65
|
className="c2 c3"
|
|
@@ -76,6 +78,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
76
78
|
</li>
|
|
77
79
|
<li
|
|
78
80
|
className="c1"
|
|
81
|
+
data-testid="SocialIcon-instagram"
|
|
79
82
|
>
|
|
80
83
|
<a
|
|
81
84
|
className="c2 c3"
|
|
@@ -94,6 +97,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
94
97
|
</li>
|
|
95
98
|
<li
|
|
96
99
|
className="c1"
|
|
100
|
+
data-testid="SocialIcon-twitter"
|
|
97
101
|
>
|
|
98
102
|
<a
|
|
99
103
|
className="c2 c3"
|
|
@@ -112,6 +116,7 @@ exports[`renders correctly with Comic Relief links 1`] = `
|
|
|
112
116
|
</li>
|
|
113
117
|
<li
|
|
114
118
|
className="c1"
|
|
119
|
+
data-testid="SocialIcon-youtube"
|
|
115
120
|
>
|
|
116
121
|
<a
|
|
117
122
|
className="c2 c3"
|
|
@@ -186,9 +191,11 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
186
191
|
|
|
187
192
|
<ul
|
|
188
193
|
className="c0"
|
|
194
|
+
data-testid="SocialIconsList"
|
|
189
195
|
>
|
|
190
196
|
<li
|
|
191
197
|
className="c1"
|
|
198
|
+
data-testid="SocialIcon-facebook"
|
|
192
199
|
>
|
|
193
200
|
<a
|
|
194
201
|
className="c2 c3"
|
|
@@ -207,6 +214,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
207
214
|
</li>
|
|
208
215
|
<li
|
|
209
216
|
className="c1"
|
|
217
|
+
data-testid="SocialIcon-instagram"
|
|
210
218
|
>
|
|
211
219
|
<a
|
|
212
220
|
className="c2 c3"
|
|
@@ -225,6 +233,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
225
233
|
</li>
|
|
226
234
|
<li
|
|
227
235
|
className="c1"
|
|
236
|
+
data-testid="SocialIcon-twitter"
|
|
228
237
|
>
|
|
229
238
|
<a
|
|
230
239
|
className="c2 c3"
|
|
@@ -243,6 +252,7 @@ exports[`renders correctly with Red Nose Day links and self target 1`] = `
|
|
|
243
252
|
</li>
|
|
244
253
|
<li
|
|
245
254
|
className="c1"
|
|
255
|
+
data-testid="SocialIcon-youtube"
|
|
246
256
|
>
|
|
247
257
|
<a
|
|
248
258
|
className="c2 c3"
|
|
@@ -317,9 +327,11 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
317
327
|
|
|
318
328
|
<ul
|
|
319
329
|
className="c0"
|
|
330
|
+
data-testid="SocialIconsList"
|
|
320
331
|
>
|
|
321
332
|
<li
|
|
322
333
|
className="c1"
|
|
334
|
+
data-testid="SocialIcon-facebook"
|
|
323
335
|
>
|
|
324
336
|
<a
|
|
325
337
|
className="c2 c3"
|
|
@@ -338,6 +350,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
338
350
|
</li>
|
|
339
351
|
<li
|
|
340
352
|
className="c1"
|
|
353
|
+
data-testid="SocialIcon-instagram"
|
|
341
354
|
>
|
|
342
355
|
<a
|
|
343
356
|
className="c2 c3"
|
|
@@ -356,6 +369,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
356
369
|
</li>
|
|
357
370
|
<li
|
|
358
371
|
className="c1"
|
|
372
|
+
data-testid="SocialIcon-twitter"
|
|
359
373
|
>
|
|
360
374
|
<a
|
|
361
375
|
className="c2 c3"
|
|
@@ -374,6 +388,7 @@ exports[`renders correctly with Sport Relief links 1`] = `
|
|
|
374
388
|
</li>
|
|
375
389
|
<li
|
|
376
390
|
className="c1"
|
|
391
|
+
data-testid="SocialIcon-youtube"
|
|
377
392
|
>
|
|
378
393
|
<a
|
|
379
394
|
className="c2 c3"
|
|
@@ -125,11 +125,13 @@ const TextInputWithDropdown = React.forwardRef(
|
|
|
125
125
|
className={`TextInputWithDropdown ${className}`.trim()}
|
|
126
126
|
onKeyDown={navigateOptions}
|
|
127
127
|
ref={containerRef}
|
|
128
|
+
data-testid="TextInputWithDropdownContainer"
|
|
128
129
|
>
|
|
129
130
|
<Input
|
|
130
131
|
{...inputProps}
|
|
131
132
|
className="TextInputWithDropdown__input"
|
|
132
133
|
ref={forwardedRef}
|
|
134
|
+
data-testid="TextInputWithDropdownInput"
|
|
133
135
|
/>
|
|
134
136
|
{options.length > 0 && !forceClosed && (
|
|
135
137
|
<Options
|
|
@@ -167,7 +169,7 @@ const Options = React.forwardRef(({
|
|
|
167
169
|
};
|
|
168
170
|
|
|
169
171
|
return (
|
|
170
|
-
<Dropdown {...rest} $hideBorder={hideBorder}>
|
|
172
|
+
<Dropdown {...rest} $hideBorder={hideBorder} data-testid="TextInputWithDropdownDropdown">
|
|
171
173
|
<DropdownList
|
|
172
174
|
ref={ref}
|
|
173
175
|
role="listbox"
|
|
@@ -175,6 +177,7 @@ const Options = React.forwardRef(({
|
|
|
175
177
|
aria-activedescendant={
|
|
176
178
|
activeOption > -1 ? `option-${activeOption}` : undefined
|
|
177
179
|
}
|
|
180
|
+
data-testid="TextInputWithDropdownList"
|
|
178
181
|
>
|
|
179
182
|
{dropdownInstruction && (
|
|
180
183
|
<DropdownItemSelectable
|
|
@@ -182,6 +185,7 @@ const Options = React.forwardRef(({
|
|
|
182
185
|
role="option"
|
|
183
186
|
key="dropdown-instruction"
|
|
184
187
|
onClick={closeDropdown}
|
|
188
|
+
data-testid="TextInputWithDropdownInstruction"
|
|
185
189
|
>
|
|
186
190
|
<TextItalic>
|
|
187
191
|
{dropdownInstruction}
|
|
@@ -207,6 +211,7 @@ const Options = React.forwardRef(({
|
|
|
207
211
|
? element => element && element.focus()
|
|
208
212
|
: null
|
|
209
213
|
}
|
|
214
|
+
data-testid={`TextInputWithDropdownOption-${index}`}
|
|
210
215
|
>
|
|
211
216
|
<Text>{option}</Text>
|
|
212
217
|
</DropdownItemSelectable>
|
package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap
CHANGED
|
@@ -121,6 +121,7 @@ exports[`renders correctly with no value and no options 1`] = `
|
|
|
121
121
|
|
|
122
122
|
<div
|
|
123
123
|
className="c0 TextInputWithDropdown"
|
|
124
|
+
data-testid="TextInputWithDropdownContainer"
|
|
124
125
|
onKeyDown={[Function]}
|
|
125
126
|
>
|
|
126
127
|
<label
|
|
@@ -145,6 +146,7 @@ exports[`renders correctly with no value and no options 1`] = `
|
|
|
145
146
|
aria-required={false}
|
|
146
147
|
autoComplete="off"
|
|
147
148
|
className="c6"
|
|
149
|
+
data-testid="TextInputWithDropdownInput"
|
|
148
150
|
id="text-input-with-dropdown"
|
|
149
151
|
name="query"
|
|
150
152
|
onChange={[Function]}
|
|
@@ -280,6 +282,7 @@ exports[`renders correctly with value and no options 1`] = `
|
|
|
280
282
|
|
|
281
283
|
<div
|
|
282
284
|
className="c0 TextInputWithDropdown"
|
|
285
|
+
data-testid="TextInputWithDropdownContainer"
|
|
283
286
|
onKeyDown={[Function]}
|
|
284
287
|
>
|
|
285
288
|
<label
|
|
@@ -304,6 +307,7 @@ exports[`renders correctly with value and no options 1`] = `
|
|
|
304
307
|
aria-required={false}
|
|
305
308
|
autoComplete="off"
|
|
306
309
|
className="c6"
|
|
310
|
+
data-testid="TextInputWithDropdownInput"
|
|
307
311
|
id="text-input-with-dropdown"
|
|
308
312
|
name="query"
|
|
309
313
|
onChange={[Function]}
|
|
@@ -478,6 +482,7 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
478
482
|
|
|
479
483
|
<div
|
|
480
484
|
className="c0 TextInputWithDropdown"
|
|
485
|
+
data-testid="TextInputWithDropdownContainer"
|
|
481
486
|
onKeyDown={[Function]}
|
|
482
487
|
>
|
|
483
488
|
<label
|
|
@@ -502,6 +507,7 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
502
507
|
aria-required={false}
|
|
503
508
|
autoComplete="off"
|
|
504
509
|
className="c6"
|
|
510
|
+
data-testid="TextInputWithDropdownInput"
|
|
505
511
|
id="text-input-with-dropdown"
|
|
506
512
|
name="query"
|
|
507
513
|
onChange={[Function]}
|
|
@@ -515,15 +521,18 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
515
521
|
</label>
|
|
516
522
|
<div
|
|
517
523
|
className="c7 TextInputWithDropdown__options"
|
|
524
|
+
data-testid="TextInputWithDropdownDropdown"
|
|
518
525
|
>
|
|
519
526
|
<ul
|
|
520
527
|
className="c8"
|
|
528
|
+
data-testid="TextInputWithDropdownList"
|
|
521
529
|
onBlur={[Function]}
|
|
522
530
|
role="listbox"
|
|
523
531
|
>
|
|
524
532
|
<li
|
|
525
533
|
aria-selected={false}
|
|
526
534
|
className="c9 c10"
|
|
535
|
+
data-testid="TextInputWithDropdownOption-0"
|
|
527
536
|
id="option-0"
|
|
528
537
|
onClick={[Function]}
|
|
529
538
|
onKeyPress={[Function]}
|
|
@@ -539,6 +548,7 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
539
548
|
<li
|
|
540
549
|
aria-selected={false}
|
|
541
550
|
className="c9 c10"
|
|
551
|
+
data-testid="TextInputWithDropdownOption-1"
|
|
542
552
|
id="option-1"
|
|
543
553
|
onClick={[Function]}
|
|
544
554
|
onKeyPress={[Function]}
|
|
@@ -554,6 +564,7 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
554
564
|
<li
|
|
555
565
|
aria-selected={false}
|
|
556
566
|
className="c9 c10"
|
|
567
|
+
data-testid="TextInputWithDropdownOption-2"
|
|
557
568
|
id="option-2"
|
|
558
569
|
onClick={[Function]}
|
|
559
570
|
onKeyPress={[Function]}
|
|
@@ -569,6 +580,7 @@ exports[`renders correctly with value and options 1`] = `
|
|
|
569
580
|
<li
|
|
570
581
|
aria-selected={false}
|
|
571
582
|
className="c9 c10"
|
|
583
|
+
data-testid="TextInputWithDropdownOption-3"
|
|
572
584
|
id="option-3"
|
|
573
585
|
onClick={[Function]}
|
|
574
586
|
onKeyPress={[Function]}
|
|
@@ -72,7 +72,6 @@ it('renders article teaser correctly', () => {
|
|
|
72
72
|
display: inline;
|
|
73
73
|
color: #000000;
|
|
74
74
|
font-weight: normal;
|
|
75
|
-
color: #E52630;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
.c1:hover,
|
|
@@ -382,6 +381,7 @@ it('renders article teaser correctly', () => {
|
|
|
382
381
|
>
|
|
383
382
|
<div
|
|
384
383
|
className="c6 c7 c8"
|
|
384
|
+
data-testid="PictureWrapper"
|
|
385
385
|
>
|
|
386
386
|
<img
|
|
387
387
|
alt="Image's description"
|
|
@@ -390,6 +390,7 @@ it('renders article teaser correctly', () => {
|
|
|
390
390
|
data-sizes="auto"
|
|
391
391
|
data-src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
392
392
|
data-srcset="//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=200&h=150&q=50 200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=400&h=300&q=50 400w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=800&h=600&q=50 800w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1200&h=900&q=50 1200w,//images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg?w=1440&h=1080&q=50 1440w"
|
|
393
|
+
data-testid="Picture"
|
|
393
394
|
src="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
394
395
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
395
396
|
/>
|
|
@@ -520,7 +521,6 @@ it('renders press realese correctly', () => {
|
|
|
520
521
|
display: inline;
|
|
521
522
|
color: #000000;
|
|
522
523
|
font-weight: normal;
|
|
523
|
-
color: #E52630;
|
|
524
524
|
}
|
|
525
525
|
|
|
526
526
|
.c1:hover,
|
|
@@ -802,6 +802,7 @@ it('renders press realese correctly', () => {
|
|
|
802
802
|
>
|
|
803
803
|
<div
|
|
804
804
|
className="c6 c7 c8"
|
|
805
|
+
data-testid="PictureWrapper"
|
|
805
806
|
>
|
|
806
807
|
<img
|
|
807
808
|
alt="Image's description"
|
|
@@ -810,6 +811,7 @@ it('renders press realese correctly', () => {
|
|
|
810
811
|
data-sizes="auto"
|
|
811
812
|
data-src="mock.asset"
|
|
812
813
|
data-srcset="mock.asset"
|
|
814
|
+
data-testid="Picture"
|
|
813
815
|
src="mock.asset"
|
|
814
816
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
815
817
|
/>
|
|
@@ -73,6 +73,7 @@ exports[`renders correctly 1`] = `
|
|
|
73
73
|
>
|
|
74
74
|
<div
|
|
75
75
|
className="c2 lazyload"
|
|
76
|
+
data-testid="PictureWrapper"
|
|
76
77
|
squaredCorners={false}
|
|
77
78
|
>
|
|
78
79
|
<img
|
|
@@ -82,6 +83,7 @@ exports[`renders correctly 1`] = `
|
|
|
82
83
|
data-sizes="auto"
|
|
83
84
|
data-src={null}
|
|
84
85
|
data-srcset="http://images.ctfassets.net/zsfivwzfgl3t/Yq59XdwwQgjNOxky93K1Q/17c2d80dce99067b0b3508f33075cbe3/funding_4-3_2x.jpg"
|
|
86
|
+
data-testid="Picture"
|
|
85
87
|
src={null}
|
|
86
88
|
srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
|
|
87
89
|
/>
|
|
@@ -51,17 +51,19 @@ const CTAMultiCard = ({ data }) => {
|
|
|
51
51
|
const cardsBackground = snakeCase(bgCards || 'white');
|
|
52
52
|
|
|
53
53
|
return (
|
|
54
|
-
<CardsQueryWrapper>
|
|
54
|
+
<CardsQueryWrapper data-testid="CTAMultiCardQueryWrapper">
|
|
55
55
|
<CardsSection
|
|
56
56
|
$backgroundColor={cardsBackground}
|
|
57
57
|
$paddingAbove={paddingAbove}
|
|
58
58
|
$paddingBelow={paddingBelow}
|
|
59
|
+
data-testid="CTAMultiCardSection"
|
|
59
60
|
>
|
|
60
|
-
<CardsInner>
|
|
61
|
+
<CardsInner data-testid="CTAMultiCardInner">
|
|
61
62
|
<CardsContainer
|
|
62
63
|
$columns={columns}
|
|
63
64
|
$isCarousel={carouselOfCards}
|
|
64
65
|
$useSplideCarousel={useSplideCarousel}
|
|
66
|
+
data-testid="CTAMultiCardContainer"
|
|
65
67
|
>
|
|
66
68
|
{useSplideCarousel ? (
|
|
67
69
|
<Splide
|