@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.
Files changed (61) hide show
  1. package/dist/index.cjs.js +578 -573
  2. package/dist/index.es.js +5423 -5368
  3. package/package.json +1 -1
  4. package/src/components/Atoms/AmbientVideo/AmbientVideo.js +4 -3
  5. package/src/components/Atoms/Button/Button.js +1 -1
  6. package/src/components/Atoms/Button/Button.test.js +1 -0
  7. package/src/components/Atoms/ButtonWithStates/ButtonWithStates.js +2 -2
  8. package/src/components/Atoms/Confetti/Confetti.js +1 -1
  9. package/src/components/Atoms/Icons/IconsExample.jsx +2 -1
  10. package/src/components/Atoms/Icons/Post.js +37 -0
  11. package/src/components/Atoms/Icons/index.js +1 -0
  12. package/src/components/Atoms/Icons/post.svg +3 -0
  13. package/src/components/Atoms/InfoMessage/__snapshots__/InfoMessage.test.js.snap +0 -1
  14. package/src/components/Atoms/Link/Link.style.js +0 -1
  15. package/src/components/Atoms/Link/Link.test.js +0 -3
  16. package/src/components/Atoms/Pagination/Pagination.js +1 -0
  17. package/src/components/Atoms/Pagination/__snapshots__/Pagination.test.js.snap +110 -0
  18. package/src/components/Atoms/Picture/Picture.js +4 -0
  19. package/src/components/Atoms/Picture/Picture.test.js +4 -0
  20. package/src/components/Atoms/SocialIcons/SocialIcons.js +2 -2
  21. package/src/components/Atoms/SocialIcons/__snapshots__/SocialIcons.test.js.snap +15 -0
  22. package/src/components/Atoms/TextInputWithDropdown/TextInputWithDropdown.js +6 -1
  23. package/src/components/Atoms/TextInputWithDropdown/__snapshots__/TextInputWithDropdown.test.js.snap +12 -0
  24. package/src/components/Molecules/ArticleTeaser/ArticleTeaser.test.js +4 -2
  25. package/src/components/Molecules/Box/__snapshots__/Box.test.js.snap +2 -0
  26. package/src/components/Molecules/CTA/CTAMultiCard/CTAMultiCard.js +4 -2
  27. package/src/components/Molecules/CTA/CTAMultiCard/__snapshots__/CTAMultiCard.test.js.snap +40 -4
  28. package/src/components/Molecules/CTA/CTASingleCard/CTASingleCard.js +2 -1
  29. package/src/components/Molecules/CTA/CTASingleCard/__snapshots__/CTASingleCard.test.js.snap +6 -2
  30. package/src/components/Molecules/Card/Card.js +3 -1
  31. package/src/components/Molecules/Card/__snapshots__/Card.test.js.snap +8 -0
  32. package/src/components/Molecules/CardDs/__snapshots__/CardDs.test.js.snap +4 -0
  33. package/src/components/Molecules/Countdown/Countdown.js +5 -5
  34. package/src/components/Molecules/Descriptor/Descriptor.test.js +221 -221
  35. package/src/components/Molecules/DoubleCopy/DoubleCopy.js +3 -3
  36. package/src/components/Molecules/DoubleCopy/DoubleCopy.test.js +3 -0
  37. package/src/components/Molecules/EmailSignUp/EmailSignUp.js +8 -7
  38. package/src/components/Molecules/HeroBanner/__snapshots__/HeroBanner.test.js.snap +8 -0
  39. package/src/components/Molecules/InfoBanner/__snapshots__/InfoBanner.test.js.snap +0 -1
  40. package/src/components/Molecules/PartnerLink/PartnerLink.test.js +2 -1
  41. package/src/components/Molecules/PictureOrVideo/__snapshots__/PictureOrVideo.test.js.snap +10 -0
  42. package/src/components/Molecules/Promo/__snapshots__/Promo.test.js.snap +4 -0
  43. package/src/components/Molecules/SchoolLookup/__snapshots__/SchoolLookup.test.js.snap +2 -0
  44. package/src/components/Molecules/SearchResult/__snapshots__/SearchResult.test.js.snap +8 -4
  45. package/src/components/Molecules/SingleMessage/__snapshots__/SingleMessage.test.js.snap +12 -0
  46. package/src/components/Molecules/SingleMessageDS/__snapshots__/SingleMessageDs.test.js.snap +2 -0
  47. package/src/components/Molecules/StatsSlice/StatsSlice.js +2 -1
  48. package/src/components/Molecules/StatsSlice/_StatNode.js +7 -6
  49. package/src/components/Molecules/StatsSlice/__snapshots__/StatsSlice.test.js.snap +28 -0
  50. package/src/components/Molecules/Typeahead/__snapshots__/Typeahead.test.js.snap +2 -0
  51. package/src/components/Organisms/CookieBanner/CookieBanner.test.js +0 -1
  52. package/src/components/Organisms/DynamicGallery/DynamicGallery.js +4 -3
  53. package/src/components/Organisms/DynamicGallery/_DynamicGalleryColumn.js +4 -2
  54. package/src/components/Organisms/DynamicGallery/_Lightbox.js +11 -8
  55. package/src/components/Organisms/DynamicGallery/__snapshots__/DynamicGallery.test.js.snap +56 -10
  56. package/src/components/Organisms/EmailBanner/__snapshots__/EmailBanner.test.js.snap +8 -0
  57. package/src/components/Organisms/EmailSignUp/__snapshots__/EmailSignUp.test.js.snap +2 -0
  58. package/src/components/Organisms/Footer/__snapshots__/Footer.test.js.snap +5 -1
  59. package/src/components/Organisms/FooterNew/__snapshots__/FooterNew.test.js.snap +62 -24
  60. package/src/components/Organisms/Membership/Membership.test.js +2 -0
  61. package/src/index.js +2 -0
@@ -24,256 +24,256 @@ it('renders article teaser correctly', () => {
24
24
  ).toJSON();
25
25
 
26
26
  expect(tree).toMatchInlineSnapshot(`
27
- .c3 {
28
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
29
- font-weight: 400;
30
- text-transform: inherit;
31
- letter-spacing: 0;
32
- font-size: 1rem;
33
- line-height: 1.25rem;
34
- }
27
+ .c3 {
28
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
29
+ font-weight: 400;
30
+ text-transform: inherit;
31
+ letter-spacing: 0;
32
+ font-size: 1rem;
33
+ line-height: 1.25rem;
34
+ }
35
35
 
36
- .c3 {
37
- font-size: 1rem;
38
- line-height: normal;
39
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
40
- font-weight: bold;
41
- color: #222222;
42
- }
36
+ .c3 {
37
+ font-size: 1rem;
38
+ line-height: normal;
39
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
40
+ font-weight: bold;
41
+ color: #222222;
42
+ }
43
43
 
44
- .c3 span {
45
- font-size: inherit;
46
- line-height: inherit;
47
- }
44
+ .c3 span {
45
+ font-size: inherit;
46
+ line-height: inherit;
47
+ }
48
48
 
49
- .c7 {
50
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
51
- font-weight: 700;
52
- text-transform: inherit;
53
- letter-spacing: 0;
54
- font-size: 1.25rem;
55
- line-height: 1.5rem;
56
- }
49
+ .c7 {
50
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
51
+ font-weight: 700;
52
+ text-transform: inherit;
53
+ letter-spacing: 0;
54
+ font-size: 1.25rem;
55
+ line-height: 1.5rem;
56
+ }
57
57
 
58
- .c7 span {
59
- font-size: inherit;
60
- line-height: inherit;
61
- }
58
+ .c7 span {
59
+ font-size: inherit;
60
+ line-height: inherit;
61
+ }
62
62
 
63
- .c10 {
64
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
65
- font-weight: 400;
66
- text-transform: inherit;
67
- letter-spacing: 0;
68
- font-size: 1rem;
69
- line-height: 1.25rem;
70
- }
63
+ .c10 {
64
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
65
+ font-weight: 400;
66
+ text-transform: inherit;
67
+ letter-spacing: 0;
68
+ font-size: 1rem;
69
+ line-height: 1.25rem;
70
+ }
71
71
 
72
- .c10 {
73
- font-size: 0.75rem;
74
- line-height: normal;
75
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
76
- font-weight: normal;
77
- color: #222222;
78
- }
72
+ .c10 {
73
+ font-size: 0.75rem;
74
+ line-height: normal;
75
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
76
+ font-weight: normal;
77
+ color: #222222;
78
+ }
79
79
 
80
- .c10 span {
81
- font-size: inherit;
82
- line-height: inherit;
83
- }
80
+ .c10 span {
81
+ font-size: inherit;
82
+ line-height: inherit;
83
+ }
84
84
 
85
- .c0 {
86
- position: relative;
87
- width: 100%;
88
- height: 100%;
89
- display: flex;
90
- background-color: #FFFFFF;
91
- border-radius: 1rem;
92
- box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
93
- }
85
+ .c0 {
86
+ position: relative;
87
+ width: 100%;
88
+ height: 100%;
89
+ display: flex;
90
+ background-color: #FFFFFF;
91
+ border-radius: 1rem;
92
+ box-shadow: rgba(0,0,0,0.15) 0px 0px 1rem;
93
+ }
94
94
 
95
- .c1 {
96
- padding: 2rem;
97
- height: 100%;
98
- display: flex;
99
- flex-direction: column;
100
- width: 100%;
101
- }
95
+ .c1 {
96
+ padding: 2rem;
97
+ height: 100%;
98
+ display: flex;
99
+ flex-direction: column;
100
+ width: 100%;
101
+ }
102
102
 
103
- .c2 {
104
- display: block;
105
- }
103
+ .c2 {
104
+ display: block;
105
+ }
106
106
 
107
- .c4 {
108
- display: inline-block;
109
- margin-bottom: 1rem;
110
- }
107
+ .c4 {
108
+ display: inline-block;
109
+ margin-bottom: 1rem;
110
+ }
111
111
 
112
- .c5 {
113
- display: flex;
114
- position: absolute;
115
- top: 0;
116
- right: 0;
117
- margin-right: 2rem;
118
- margin-top: 1.5rem;
119
- }
112
+ .c5 {
113
+ display: flex;
114
+ position: absolute;
115
+ top: 0;
116
+ right: 0;
117
+ margin-right: 2rem;
118
+ margin-top: 1.5rem;
119
+ }
120
120
 
121
- .c5 img:not(:last-child) {
122
- margin-right: 8px;
123
- }
121
+ .c5 img:not(:last-child) {
122
+ margin-right: 8px;
123
+ }
124
124
 
125
- .c6 {
126
- object-fit: cover;
127
- width: 24px;
128
- height: 24px;
129
- }
125
+ .c6 {
126
+ object-fit: cover;
127
+ width: 24px;
128
+ height: 24px;
129
+ }
130
130
 
131
- .c8 {
132
- margin: 0 0 1.5rem;
133
- }
131
+ .c8 {
132
+ margin: 0 0 1.5rem;
133
+ }
134
134
 
135
- .c9 {
136
- margin: 0 0 1rem 0;
137
- display: flex;
138
- flex-wrap: wrap;
139
- }
135
+ .c9 {
136
+ margin: 0 0 1rem 0;
137
+ display: flex;
138
+ flex-wrap: wrap;
139
+ }
140
140
 
141
- .c9 span:not(:first-child) {
142
- margin-left: 1rem;
143
- }
141
+ .c9 span:not(:first-child) {
142
+ margin-left: 1rem;
143
+ }
144
144
 
145
- .c9 span:not(:first-child)::before {
146
- content: '';
147
- position: absolute;
148
- left: -9px;
149
- bottom: 5px;
150
- width: 3px;
151
- height: 3px;
152
- background-color: currentColor;
153
- border-radius: 50%;
154
- }
145
+ .c9 span:not(:first-child)::before {
146
+ content: '';
147
+ position: absolute;
148
+ left: -9px;
149
+ bottom: 5px;
150
+ width: 3px;
151
+ height: 3px;
152
+ background-color: currentColor;
153
+ border-radius: 50%;
154
+ }
155
155
 
156
- .c11 {
157
- position: relative;
158
- }
156
+ .c11 {
157
+ position: relative;
158
+ }
159
159
 
160
- .c12 {
161
- font-family: 'Montserrat',Helvetica,Arial,sans-serif;
162
- }
160
+ .c12 {
161
+ font-family: 'Montserrat',Helvetica,Arial,sans-serif;
162
+ }
163
163
 
164
- @media (min-width: 740px) {
165
- .c3 {
166
- font-size: 1rem;
167
- line-height: 1.25rem;
168
- }
169
- }
164
+ @media (min-width: 740px) {
165
+ .c3 {
166
+ font-size: 1rem;
167
+ line-height: 1.25rem;
168
+ }
169
+ }
170
170
 
171
- @media (min-width: 1024px) {
172
- .c3 {
173
- font-size: 1.125rem;
174
- line-height: 1.375rem;
175
- }
176
- }
171
+ @media (min-width: 1024px) {
172
+ .c3 {
173
+ font-size: 1.125rem;
174
+ line-height: 1.375rem;
175
+ }
176
+ }
177
177
 
178
- @media (min-width: 740px) {
179
- .c7 {
180
- font-size: 1.25rem;
181
- line-height: 1.5rem;
182
- }
183
- }
178
+ @media (min-width: 740px) {
179
+ .c7 {
180
+ font-size: 1.25rem;
181
+ line-height: 1.5rem;
182
+ }
183
+ }
184
184
 
185
- @media (min-width: 1024px) {
186
- .c7 {
187
- font-size: 1.375rem;
188
- line-height: 1.625rem;
189
- }
190
- }
185
+ @media (min-width: 1024px) {
186
+ .c7 {
187
+ font-size: 1.375rem;
188
+ line-height: 1.625rem;
189
+ }
190
+ }
191
191
 
192
- @media (min-width: 740px) {
193
- .c10 {
194
- font-size: 1rem;
195
- line-height: 1.25rem;
196
- }
197
- }
192
+ @media (min-width: 740px) {
193
+ .c10 {
194
+ font-size: 1rem;
195
+ line-height: 1.25rem;
196
+ }
197
+ }
198
198
 
199
- @media (min-width: 1024px) {
200
- .c10 {
201
- font-size: 1.125rem;
202
- line-height: 1.375rem;
203
- }
204
- }
199
+ @media (min-width: 1024px) {
200
+ .c10 {
201
+ font-size: 1.125rem;
202
+ line-height: 1.375rem;
203
+ }
204
+ }
205
205
 
206
- <article
207
- className="c0"
206
+ <article
207
+ className="c0"
208
+ >
209
+ <div
210
+ className="c1"
211
+ >
212
+ <div
213
+ className="c2"
208
214
  >
215
+ <span
216
+ className="c3 c4"
217
+ >
218
+ 15/06/2020
219
+ </span>
209
220
  <div
210
- className="c1"
221
+ className="c5"
211
222
  >
212
- <div
213
- className="c2"
214
- >
215
- <span
216
- className="c3 c4"
217
- >
218
- 15/06/2020
219
- </span>
220
- <div
221
- className="c5"
222
- >
223
- <img
224
- alt="How we fund icon"
225
- className="c6"
226
- src="mock.asset"
227
- />
228
- <img
229
- alt="Social Tech icon"
230
- className="c6"
231
- src="mock.asset"
232
- />
233
- <img
234
- alt="Sport for Change icon"
235
- className="c6"
236
- src="mock.asset"
237
- />
238
- </div>
239
- </div>
240
- <h3
241
- className="c7 c8"
242
- >
243
- Title
244
- </h3>
245
- <div
246
- className="c9"
247
- >
248
- <span
249
- className="c10 c11"
250
- >
251
- tag1
252
- </span>
253
- <span
254
- className="c10 c11"
255
- >
256
- tag2
257
- </span>
258
- <span
259
- className="c10 c11"
260
- >
261
- tag3
262
- </span>
263
- <span
264
- className="c10 c11"
265
- >
266
- tag4
267
- </span>
268
- </div>
269
- <div
270
- className="c12"
271
- >
272
- Description go here...
273
- <br />
274
- Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
275
- </div>
223
+ <img
224
+ alt="How we fund icon"
225
+ className="c6"
226
+ src="mock.asset"
227
+ />
228
+ <img
229
+ alt="Social Tech icon"
230
+ className="c6"
231
+ src="mock.asset"
232
+ />
233
+ <img
234
+ alt="Sport for Change icon"
235
+ className="c6"
236
+ src="mock.asset"
237
+ />
276
238
  </div>
277
- </article>
278
- `);
239
+ </div>
240
+ <h3
241
+ className="c7 c8"
242
+ >
243
+ Title
244
+ </h3>
245
+ <div
246
+ className="c9"
247
+ >
248
+ <span
249
+ className="c10 c11"
250
+ >
251
+ tag1
252
+ </span>
253
+ <span
254
+ className="c10 c11"
255
+ >
256
+ tag2
257
+ </span>
258
+ <span
259
+ className="c10 c11"
260
+ >
261
+ tag3
262
+ </span>
263
+ <span
264
+ className="c10 c11"
265
+ >
266
+ tag4
267
+ </span>
268
+ </div>
269
+ <div
270
+ className="c12"
271
+ >
272
+ Description go here...
273
+ <br />
274
+ Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
275
+ </div>
276
+ </div>
277
+ </article>
278
+ `);
279
279
  });
@@ -4,9 +4,9 @@ import PropTypes from 'prop-types';
4
4
  import { Section, CopyWrapper } from './DoubleCopy.style';
5
5
 
6
6
  const DoubleCopy = ({ leftCopy, rightCopy }) => (
7
- <Section>
8
- <CopyWrapper>{leftCopy}</CopyWrapper>
9
- <CopyWrapper>{rightCopy}</CopyWrapper>
7
+ <Section data-testid="DoubleCopySection">
8
+ <CopyWrapper data-testid="DoubleCopyLeftWrapper">{leftCopy}</CopyWrapper>
9
+ <CopyWrapper data-testid="DoubleCopyRightWrapper">{rightCopy}</CopyWrapper>
10
10
  </Section>
11
11
  );
12
12
 
@@ -37,9 +37,11 @@ it('renders correctly', () => {
37
37
 
38
38
  <section
39
39
  className="c0"
40
+ data-testid="DoubleCopySection"
40
41
  >
41
42
  <div
42
43
  className="c1"
44
+ data-testid="DoubleCopyLeftWrapper"
43
45
  >
44
46
  <div
45
47
  className="c2"
@@ -52,6 +54,7 @@ it('renders correctly', () => {
52
54
  </div>
53
55
  <div
54
56
  className="c1"
57
+ data-testid="DoubleCopyRightWrapper"
55
58
  >
56
59
  <div
57
60
  className="c2"
@@ -17,14 +17,14 @@ const EmailSignUp = ({ formContext, ...rest }) => {
17
17
  const errorMsg = errors && errors.email && errors.email.message;
18
18
 
19
19
  return (
20
- <EmailSignUpWrapper>
21
- <LabelWrapper>
22
- <StyledLabel>
20
+ <EmailSignUpWrapper data-testid="EmailSignUpWrapper">
21
+ <LabelWrapper data-testid="EmailSignUpLabelWrapper">
22
+ <StyledLabel data-testid="EmailSignUpLabel">
23
23
  Subscribe to our newsletter
24
24
  </StyledLabel>
25
25
  </LabelWrapper>
26
- <FormWrapper $error={!!errorMsg}>
27
- <InputWrapper>
26
+ <FormWrapper $error={!!errorMsg} data-testid="EmailSignUpFormWrapper">
27
+ <InputWrapper data-testid="EmailSignUpInputWrapper">
28
28
  <StyledEmailInput
29
29
  name="email"
30
30
  type="email"
@@ -36,10 +36,11 @@ const EmailSignUp = ({ formContext, ...rest }) => {
36
36
  optional
37
37
  {...register('email')}
38
38
  {...rest}
39
+ data-testid="EmailSignUpInput"
39
40
  />
40
41
  </InputWrapper>
41
- <ButtonWrapper>
42
- <StyledEmailSignUpButton type="submit" color="white">
42
+ <ButtonWrapper data-testid="EmailSignUpButtonWrapper">
43
+ <StyledEmailSignUpButton type="submit" color="white" data-testid="EmailSignUpButton">
43
44
  <span className="emailSignUpButtonContent">
44
45
  <span className="emailSignUpButtonLabel">Sign up</span>
45
46
  <span className="emailSignUpButtonArrow" aria-hidden="true">
@@ -233,6 +233,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
233
233
  >
234
234
  <div
235
235
  className="c3 lazyload"
236
+ data-testid="PictureWrapper"
236
237
  >
237
238
  <img
238
239
  alt="Image alt text"
@@ -241,6 +242,7 @@ exports[`renders "Full Height Media" Hero Banner correctly 1`] = `
241
242
  data-sizes="auto"
242
243
  data-src="mock.asset"
243
244
  data-srcset="mock.asset"
245
+ data-testid="Picture"
244
246
  src="mock.asset"
245
247
  srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
246
248
  />
@@ -504,6 +506,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
504
506
  >
505
507
  <div
506
508
  className="c3 lazyload"
509
+ data-testid="PictureWrapper"
507
510
  >
508
511
  <img
509
512
  alt="Image alt text"
@@ -512,6 +515,7 @@ exports[`renders "Half Height Media" Hero Banner correctly 1`] = `
512
515
  data-sizes="auto"
513
516
  data-src="mock.asset"
514
517
  data-srcset="mock.asset"
518
+ data-testid="Picture"
515
519
  src="mock.asset"
516
520
  srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
517
521
  />
@@ -1030,6 +1034,7 @@ exports[`renders "Text Banner" Hero Banner correctly 2`] = `
1030
1034
  >
1031
1035
  <div
1032
1036
  className="c3 lazyload"
1037
+ data-testid="PictureWrapper"
1033
1038
  >
1034
1039
  <img
1035
1040
  alt="Image alt text"
@@ -1038,6 +1043,7 @@ exports[`renders "Text Banner" Hero Banner correctly 2`] = `
1038
1043
  data-sizes="auto"
1039
1044
  data-src="mock.asset"
1040
1045
  data-srcset="mock.asset"
1046
+ data-testid="Picture"
1041
1047
  src="mock.asset"
1042
1048
  srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
1043
1049
  />
@@ -1070,11 +1076,13 @@ exports[`renders "Text Banner" Hero Banner correctly 2`] = `
1070
1076
  >
1071
1077
  <div
1072
1078
  className="c11 c12"
1079
+ data-testid="PictureWrapper"
1073
1080
  >
1074
1081
  <img
1075
1082
  alt=""
1076
1083
  className="c13 lazyload"
1077
1084
  data-src="mock.asset"
1085
+ data-testid="Picture"
1078
1086
  />
1079
1087
  </div>
1080
1088
  </div>
@@ -44,7 +44,6 @@ exports[`renders correctly 1`] = `
44
44
  display: inline;
45
45
  color: #000000;
46
46
  font-weight: normal;
47
- color: #E52630;
48
47
  }
49
48
 
50
49
  .c4:hover,
@@ -42,7 +42,6 @@ it('renders correctly', () => {
42
42
  display: inline;
43
43
  color: #000000;
44
44
  font-weight: normal;
45
- color: #E52630;
46
45
  }
47
46
 
48
47
  .c0:hover,
@@ -147,6 +146,7 @@ it('renders correctly', () => {
147
146
  >
148
147
  <div
149
148
  className="c2 lazyload"
149
+ data-testid="PictureWrapper"
150
150
  >
151
151
  <img
152
152
  alt="test Image"
@@ -155,6 +155,7 @@ it('renders correctly', () => {
155
155
  data-sizes="auto"
156
156
  data-src={null}
157
157
  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"
158
+ data-testid="Picture"
158
159
  src={null}
159
160
  srcSet="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"
160
161
  />