@eeacms/volto-cca-policy 0.2.0 → 0.2.2

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.
@@ -0,0 +1,1380 @@
1
+ import '@testing-library/jest-dom/extend-expect';
2
+
3
+ import { render } from '@testing-library/react';
4
+ import React from 'react';
5
+ import { MemoryRouter } from 'react-router-dom';
6
+ import configureStore from 'redux-mock-store';
7
+ import { Provider } from 'react-intl-redux';
8
+
9
+ import Spotlight from './Spotlight';
10
+
11
+ const mockStore = configureStore();
12
+
13
+ describe('Filter', () => {
14
+ it('should render the component', () => {
15
+ const data = {
16
+ '@type': 'tabs_block',
17
+ data: {
18
+ assetPosition: 'top',
19
+ blocks: {
20
+ '05130306-68cd-43c4-bf29-38653e55b3d1': {
21
+ '@type': 'tab',
22
+ assetPosition: 'top',
23
+ assetType: 'image',
24
+ blocks: {
25
+ '1a1f6fd5-3baa-4141-b10e-0e60dc15c468': {
26
+ '@type': 'slate',
27
+ plaintext: 'tab 4',
28
+ value: [
29
+ {
30
+ children: [
31
+ {
32
+ text: 'tab 4',
33
+ },
34
+ ],
35
+ type: 'p',
36
+ },
37
+ ],
38
+ },
39
+ },
40
+ blocks_layout: {
41
+ items: ['1a1f6fd5-3baa-4141-b10e-0e60dc15c468'],
42
+ },
43
+ iconSize: 'small',
44
+ image: [
45
+ {
46
+ '@id': '/sandbox/stupid-google-answer.png',
47
+ image_field: 'image',
48
+ image_scales: {
49
+ image: [
50
+ {
51
+ 'content-type': 'image/png',
52
+ download:
53
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
54
+ filename: 'stupid google answer.png',
55
+ height: 1156,
56
+ scales: {
57
+ big: {
58
+ download:
59
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
60
+ height: 72,
61
+ width: 80,
62
+ },
63
+ great: {
64
+ download:
65
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
66
+ height: 1082,
67
+ width: 1200,
68
+ },
69
+ icon: {
70
+ download:
71
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
72
+ height: 28,
73
+ width: 32,
74
+ },
75
+ large: {
76
+ download:
77
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
78
+ height: 721,
79
+ width: 800,
80
+ },
81
+ larger: {
82
+ download:
83
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
84
+ height: 902,
85
+ width: 1000,
86
+ },
87
+ listing: {
88
+ download:
89
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
90
+ height: 14,
91
+ width: 16,
92
+ },
93
+ medium: {
94
+ download:
95
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
96
+ height: 54,
97
+ width: 60,
98
+ },
99
+ mini: {
100
+ download:
101
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
102
+ height: 180,
103
+ width: 200,
104
+ },
105
+ portrait: {
106
+ download:
107
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
108
+ height: 695,
109
+ width: 771,
110
+ },
111
+ preview: {
112
+ download:
113
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
114
+ height: 360,
115
+ width: 400,
116
+ },
117
+ small: {
118
+ download:
119
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
120
+ height: 43,
121
+ width: 48,
122
+ },
123
+ teaser: {
124
+ download:
125
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
126
+ height: 541,
127
+ width: 600,
128
+ },
129
+ thumb: {
130
+ download:
131
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
132
+ height: 115,
133
+ width: 128,
134
+ },
135
+ tile: {
136
+ download:
137
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
138
+ height: 57,
139
+ width: 64,
140
+ },
141
+ tiny: {
142
+ download:
143
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
144
+ height: 21,
145
+ width: 24,
146
+ },
147
+ wide: {
148
+ download:
149
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
150
+ height: 183,
151
+ width: 202,
152
+ },
153
+ xlarge: {
154
+ download:
155
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
156
+ height: 857,
157
+ width: 950,
158
+ },
159
+ },
160
+ size: 193122,
161
+ width: 1281,
162
+ },
163
+ ],
164
+ },
165
+ title: 'stupid google answer.png',
166
+ },
167
+ ],
168
+ imageSize: 'icon',
169
+ },
170
+ '4f11fadc-c195-40a1-8252-c6f9518da4f6': {
171
+ '@type': 'tab',
172
+ assetPosition: 'top',
173
+ assetType: 'image',
174
+ blocks: {
175
+ 'e85d7c43-cc73-4c08-88c1-2363e3432726': {
176
+ '@type': 'slate',
177
+ plaintext: 'tab 2',
178
+ value: [
179
+ {
180
+ children: [
181
+ {
182
+ text: 'tab 2',
183
+ },
184
+ ],
185
+ type: 'p',
186
+ },
187
+ ],
188
+ },
189
+ },
190
+ blocks_layout: {
191
+ items: ['e85d7c43-cc73-4c08-88c1-2363e3432726'],
192
+ },
193
+ iconSize: 'small',
194
+ image: [
195
+ {
196
+ '@id': '/sandbox/stupid-google-answer.png',
197
+ image_field: 'image',
198
+ image_scales: {
199
+ image: [
200
+ {
201
+ 'content-type': 'image/png',
202
+ download:
203
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
204
+ filename: 'stupid google answer.png',
205
+ height: 1156,
206
+ scales: {
207
+ big: {
208
+ download:
209
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
210
+ height: 72,
211
+ width: 80,
212
+ },
213
+ great: {
214
+ download:
215
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
216
+ height: 1082,
217
+ width: 1200,
218
+ },
219
+ icon: {
220
+ download:
221
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
222
+ height: 28,
223
+ width: 32,
224
+ },
225
+ large: {
226
+ download:
227
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
228
+ height: 721,
229
+ width: 800,
230
+ },
231
+ larger: {
232
+ download:
233
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
234
+ height: 902,
235
+ width: 1000,
236
+ },
237
+ listing: {
238
+ download:
239
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
240
+ height: 14,
241
+ width: 16,
242
+ },
243
+ medium: {
244
+ download:
245
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
246
+ height: 54,
247
+ width: 60,
248
+ },
249
+ mini: {
250
+ download:
251
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
252
+ height: 180,
253
+ width: 200,
254
+ },
255
+ portrait: {
256
+ download:
257
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
258
+ height: 695,
259
+ width: 771,
260
+ },
261
+ preview: {
262
+ download:
263
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
264
+ height: 360,
265
+ width: 400,
266
+ },
267
+ small: {
268
+ download:
269
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
270
+ height: 43,
271
+ width: 48,
272
+ },
273
+ teaser: {
274
+ download:
275
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
276
+ height: 541,
277
+ width: 600,
278
+ },
279
+ thumb: {
280
+ download:
281
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
282
+ height: 115,
283
+ width: 128,
284
+ },
285
+ tile: {
286
+ download:
287
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
288
+ height: 57,
289
+ width: 64,
290
+ },
291
+ tiny: {
292
+ download:
293
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
294
+ height: 21,
295
+ width: 24,
296
+ },
297
+ wide: {
298
+ download:
299
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
300
+ height: 183,
301
+ width: 202,
302
+ },
303
+ xlarge: {
304
+ download:
305
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
306
+ height: 857,
307
+ width: 950,
308
+ },
309
+ },
310
+ size: 193122,
311
+ width: 1281,
312
+ },
313
+ ],
314
+ },
315
+ title: 'stupid google answer.png',
316
+ },
317
+ ],
318
+ imageSize: 'icon',
319
+ },
320
+ '76c5aabc-efcc-4a36-99ce-d930a3069dd2': {
321
+ '@type': 'tab',
322
+ assetPosition: 'top',
323
+ assetType: 'image',
324
+ blocks: {
325
+ 'deaf1edd-bc41-4096-bedc-b5915f185c1b': {
326
+ '@type': 'slate',
327
+ },
328
+ },
329
+ blocks_layout: {
330
+ items: ['deaf1edd-bc41-4096-bedc-b5915f185c1b'],
331
+ },
332
+ iconSize: 'small',
333
+ image: [
334
+ {
335
+ '@id': '/sandbox/stupid-google-answer.png',
336
+ image_field: 'image',
337
+ image_scales: {
338
+ image: [
339
+ {
340
+ 'content-type': 'image/png',
341
+ download:
342
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
343
+ filename: 'stupid google answer.png',
344
+ height: 1156,
345
+ scales: {
346
+ big: {
347
+ download:
348
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
349
+ height: 72,
350
+ width: 80,
351
+ },
352
+ great: {
353
+ download:
354
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
355
+ height: 1082,
356
+ width: 1200,
357
+ },
358
+ icon: {
359
+ download:
360
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
361
+ height: 28,
362
+ width: 32,
363
+ },
364
+ large: {
365
+ download:
366
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
367
+ height: 721,
368
+ width: 800,
369
+ },
370
+ larger: {
371
+ download:
372
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
373
+ height: 902,
374
+ width: 1000,
375
+ },
376
+ listing: {
377
+ download:
378
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
379
+ height: 14,
380
+ width: 16,
381
+ },
382
+ medium: {
383
+ download:
384
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
385
+ height: 54,
386
+ width: 60,
387
+ },
388
+ mini: {
389
+ download:
390
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
391
+ height: 180,
392
+ width: 200,
393
+ },
394
+ portrait: {
395
+ download:
396
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
397
+ height: 695,
398
+ width: 771,
399
+ },
400
+ preview: {
401
+ download:
402
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
403
+ height: 360,
404
+ width: 400,
405
+ },
406
+ small: {
407
+ download:
408
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
409
+ height: 43,
410
+ width: 48,
411
+ },
412
+ teaser: {
413
+ download:
414
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
415
+ height: 541,
416
+ width: 600,
417
+ },
418
+ thumb: {
419
+ download:
420
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
421
+ height: 115,
422
+ width: 128,
423
+ },
424
+ tile: {
425
+ download:
426
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
427
+ height: 57,
428
+ width: 64,
429
+ },
430
+ tiny: {
431
+ download:
432
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
433
+ height: 21,
434
+ width: 24,
435
+ },
436
+ wide: {
437
+ download:
438
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
439
+ height: 183,
440
+ width: 202,
441
+ },
442
+ xlarge: {
443
+ download:
444
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
445
+ height: 857,
446
+ width: 950,
447
+ },
448
+ },
449
+ size: 193122,
450
+ width: 1281,
451
+ },
452
+ ],
453
+ },
454
+ title: 'stupid google answer.png',
455
+ },
456
+ ],
457
+ imageSize: 'icon',
458
+ },
459
+ '7cde1ed2-2f60-4cd6-9164-d8598bcc9914': {
460
+ '@type': 'tab',
461
+ assetPosition: 'top',
462
+ assetType: 'image',
463
+ blocks: {
464
+ 'fc5507d7-b22f-4ac5-9c47-1c2608b317ce': {
465
+ '@type': 'slate',
466
+ },
467
+ },
468
+ blocks_layout: {
469
+ items: ['fc5507d7-b22f-4ac5-9c47-1c2608b317ce'],
470
+ },
471
+ iconSize: 'small',
472
+ image: [
473
+ {
474
+ '@id': '/sandbox/stupid-google-answer.png',
475
+ image_field: 'image',
476
+ image_scales: {
477
+ image: [
478
+ {
479
+ 'content-type': 'image/png',
480
+ download:
481
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
482
+ filename: 'stupid google answer.png',
483
+ height: 1156,
484
+ scales: {
485
+ big: {
486
+ download:
487
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
488
+ height: 72,
489
+ width: 80,
490
+ },
491
+ great: {
492
+ download:
493
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
494
+ height: 1082,
495
+ width: 1200,
496
+ },
497
+ icon: {
498
+ download:
499
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
500
+ height: 28,
501
+ width: 32,
502
+ },
503
+ large: {
504
+ download:
505
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
506
+ height: 721,
507
+ width: 800,
508
+ },
509
+ larger: {
510
+ download:
511
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
512
+ height: 902,
513
+ width: 1000,
514
+ },
515
+ listing: {
516
+ download:
517
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
518
+ height: 14,
519
+ width: 16,
520
+ },
521
+ medium: {
522
+ download:
523
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
524
+ height: 54,
525
+ width: 60,
526
+ },
527
+ mini: {
528
+ download:
529
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
530
+ height: 180,
531
+ width: 200,
532
+ },
533
+ portrait: {
534
+ download:
535
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
536
+ height: 695,
537
+ width: 771,
538
+ },
539
+ preview: {
540
+ download:
541
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
542
+ height: 360,
543
+ width: 400,
544
+ },
545
+ small: {
546
+ download:
547
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
548
+ height: 43,
549
+ width: 48,
550
+ },
551
+ teaser: {
552
+ download:
553
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
554
+ height: 541,
555
+ width: 600,
556
+ },
557
+ thumb: {
558
+ download:
559
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
560
+ height: 115,
561
+ width: 128,
562
+ },
563
+ tile: {
564
+ download:
565
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
566
+ height: 57,
567
+ width: 64,
568
+ },
569
+ tiny: {
570
+ download:
571
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
572
+ height: 21,
573
+ width: 24,
574
+ },
575
+ wide: {
576
+ download:
577
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
578
+ height: 183,
579
+ width: 202,
580
+ },
581
+ xlarge: {
582
+ download:
583
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
584
+ height: 857,
585
+ width: 950,
586
+ },
587
+ },
588
+ size: 193122,
589
+ width: 1281,
590
+ },
591
+ ],
592
+ },
593
+ title: 'stupid google answer.png',
594
+ },
595
+ ],
596
+ imageSize: 'icon',
597
+ },
598
+ '96470737-007c-4bd3-a2c1-d1fd2749db8a': {
599
+ '@type': 'tab',
600
+ assetPosition: 'top',
601
+ assetType: 'image',
602
+ blocks: {
603
+ '197299c6-24cf-49c5-bd4b-b00803d74e6c': {
604
+ '@type': 'slate',
605
+ },
606
+ },
607
+ blocks_layout: {
608
+ items: ['197299c6-24cf-49c5-bd4b-b00803d74e6c'],
609
+ },
610
+ iconSize: 'small',
611
+ image: [
612
+ {
613
+ '@id': '/sandbox/stupid-google-answer.png',
614
+ image_field: 'image',
615
+ image_scales: {
616
+ image: [
617
+ {
618
+ 'content-type': 'image/png',
619
+ download:
620
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
621
+ filename: 'stupid google answer.png',
622
+ height: 1156,
623
+ scales: {
624
+ big: {
625
+ download:
626
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
627
+ height: 72,
628
+ width: 80,
629
+ },
630
+ great: {
631
+ download:
632
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
633
+ height: 1082,
634
+ width: 1200,
635
+ },
636
+ icon: {
637
+ download:
638
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
639
+ height: 28,
640
+ width: 32,
641
+ },
642
+ large: {
643
+ download:
644
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
645
+ height: 721,
646
+ width: 800,
647
+ },
648
+ larger: {
649
+ download:
650
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
651
+ height: 902,
652
+ width: 1000,
653
+ },
654
+ listing: {
655
+ download:
656
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
657
+ height: 14,
658
+ width: 16,
659
+ },
660
+ medium: {
661
+ download:
662
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
663
+ height: 54,
664
+ width: 60,
665
+ },
666
+ mini: {
667
+ download:
668
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
669
+ height: 180,
670
+ width: 200,
671
+ },
672
+ portrait: {
673
+ download:
674
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
675
+ height: 695,
676
+ width: 771,
677
+ },
678
+ preview: {
679
+ download:
680
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
681
+ height: 360,
682
+ width: 400,
683
+ },
684
+ small: {
685
+ download:
686
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
687
+ height: 43,
688
+ width: 48,
689
+ },
690
+ teaser: {
691
+ download:
692
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
693
+ height: 541,
694
+ width: 600,
695
+ },
696
+ thumb: {
697
+ download:
698
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
699
+ height: 115,
700
+ width: 128,
701
+ },
702
+ tile: {
703
+ download:
704
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
705
+ height: 57,
706
+ width: 64,
707
+ },
708
+ tiny: {
709
+ download:
710
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
711
+ height: 21,
712
+ width: 24,
713
+ },
714
+ wide: {
715
+ download:
716
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
717
+ height: 183,
718
+ width: 202,
719
+ },
720
+ xlarge: {
721
+ download:
722
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
723
+ height: 857,
724
+ width: 950,
725
+ },
726
+ },
727
+ size: 193122,
728
+ width: 1281,
729
+ },
730
+ ],
731
+ },
732
+ title: 'stupid google answer.png',
733
+ },
734
+ ],
735
+ imageSize: 'icon',
736
+ },
737
+ 'c46b71ec-434c-4b5b-925b-b821327df036': {
738
+ '@type': 'tab',
739
+ assetPosition: 'top',
740
+ assetType: 'image',
741
+ blocks: {
742
+ '04f5e561-ff8b-4d39-91ee-05aaa80e9815': {
743
+ '@type': 'columnsBlock',
744
+ data: {
745
+ blocks: {
746
+ '436a9aa6-d966-4956-841b-3516d9029d07': {
747
+ blocks: {
748
+ 'ffe5bc22-c9e7-4cf2-8eca-71138f7fd163': {
749
+ '@type': 'slate',
750
+ plaintext: 'hello',
751
+ value: [
752
+ {
753
+ children: [
754
+ {
755
+ text: 'hello',
756
+ },
757
+ ],
758
+ type: 'p',
759
+ },
760
+ ],
761
+ },
762
+ },
763
+ blocks_layout: {
764
+ items: ['ffe5bc22-c9e7-4cf2-8eca-71138f7fd163'],
765
+ },
766
+ settings: {
767
+ backgroundColor: '#007b6c',
768
+ },
769
+ },
770
+ },
771
+ blocks_layout: {
772
+ items: ['436a9aa6-d966-4956-841b-3516d9029d07'],
773
+ },
774
+ },
775
+ gridCols: ['full'],
776
+ gridSize: 12,
777
+ styles: {},
778
+ },
779
+ },
780
+ blocks_layout: {
781
+ items: ['04f5e561-ff8b-4d39-91ee-05aaa80e9815'],
782
+ },
783
+ iconSize: 'small',
784
+ image: [
785
+ {
786
+ '@id': '/sandbox/stupid-google-answer.png',
787
+ image_field: 'image',
788
+ image_scales: {
789
+ image: [
790
+ {
791
+ 'content-type': 'image/png',
792
+ download:
793
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
794
+ filename: 'stupid google answer.png',
795
+ height: 1156,
796
+ scales: {
797
+ big: {
798
+ download:
799
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
800
+ height: 72,
801
+ width: 80,
802
+ },
803
+ great: {
804
+ download:
805
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
806
+ height: 1082,
807
+ width: 1200,
808
+ },
809
+ icon: {
810
+ download:
811
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
812
+ height: 28,
813
+ width: 32,
814
+ },
815
+ large: {
816
+ download:
817
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
818
+ height: 721,
819
+ width: 800,
820
+ },
821
+ larger: {
822
+ download:
823
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
824
+ height: 902,
825
+ width: 1000,
826
+ },
827
+ listing: {
828
+ download:
829
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
830
+ height: 14,
831
+ width: 16,
832
+ },
833
+ medium: {
834
+ download:
835
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
836
+ height: 54,
837
+ width: 60,
838
+ },
839
+ mini: {
840
+ download:
841
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
842
+ height: 180,
843
+ width: 200,
844
+ },
845
+ portrait: {
846
+ download:
847
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
848
+ height: 695,
849
+ width: 771,
850
+ },
851
+ preview: {
852
+ download:
853
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
854
+ height: 360,
855
+ width: 400,
856
+ },
857
+ small: {
858
+ download:
859
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
860
+ height: 43,
861
+ width: 48,
862
+ },
863
+ teaser: {
864
+ download:
865
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
866
+ height: 541,
867
+ width: 600,
868
+ },
869
+ thumb: {
870
+ download:
871
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
872
+ height: 115,
873
+ width: 128,
874
+ },
875
+ tile: {
876
+ download:
877
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
878
+ height: 57,
879
+ width: 64,
880
+ },
881
+ tiny: {
882
+ download:
883
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
884
+ height: 21,
885
+ width: 24,
886
+ },
887
+ wide: {
888
+ download:
889
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
890
+ height: 183,
891
+ width: 202,
892
+ },
893
+ xlarge: {
894
+ download:
895
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
896
+ height: 857,
897
+ width: 950,
898
+ },
899
+ },
900
+ size: 193122,
901
+ width: 1281,
902
+ },
903
+ ],
904
+ },
905
+ title: 'stupid google answer.png',
906
+ },
907
+ ],
908
+ imageSize: 'icon',
909
+ },
910
+ 'e32a75f9-d0bf-4a06-a35c-9d6d14e0aa19': {
911
+ '@type': 'tab',
912
+ assetPosition: 'top',
913
+ assetType: 'image',
914
+ blocks: {
915
+ '1f1b9035-6f8a-4e36-8d24-b6fa652ee117': {
916
+ '@type': 'slate',
917
+ },
918
+ },
919
+ blocks_layout: {
920
+ items: ['1f1b9035-6f8a-4e36-8d24-b6fa652ee117'],
921
+ },
922
+ iconSize: 'small',
923
+ image: [
924
+ {
925
+ '@id': '/sandbox/stupid-google-answer.png',
926
+ image_field: 'image',
927
+ image_scales: {
928
+ image: [
929
+ {
930
+ 'content-type': 'image/png',
931
+ download:
932
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
933
+ filename: 'stupid google answer.png',
934
+ height: 1156,
935
+ scales: {
936
+ big: {
937
+ download:
938
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
939
+ height: 72,
940
+ width: 80,
941
+ },
942
+ great: {
943
+ download:
944
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
945
+ height: 1082,
946
+ width: 1200,
947
+ },
948
+ icon: {
949
+ download:
950
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
951
+ height: 28,
952
+ width: 32,
953
+ },
954
+ large: {
955
+ download:
956
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
957
+ height: 721,
958
+ width: 800,
959
+ },
960
+ larger: {
961
+ download:
962
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
963
+ height: 902,
964
+ width: 1000,
965
+ },
966
+ listing: {
967
+ download:
968
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
969
+ height: 14,
970
+ width: 16,
971
+ },
972
+ medium: {
973
+ download:
974
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
975
+ height: 54,
976
+ width: 60,
977
+ },
978
+ mini: {
979
+ download:
980
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
981
+ height: 180,
982
+ width: 200,
983
+ },
984
+ portrait: {
985
+ download:
986
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
987
+ height: 695,
988
+ width: 771,
989
+ },
990
+ preview: {
991
+ download:
992
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
993
+ height: 360,
994
+ width: 400,
995
+ },
996
+ small: {
997
+ download:
998
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
999
+ height: 43,
1000
+ width: 48,
1001
+ },
1002
+ teaser: {
1003
+ download:
1004
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
1005
+ height: 541,
1006
+ width: 600,
1007
+ },
1008
+ thumb: {
1009
+ download:
1010
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
1011
+ height: 115,
1012
+ width: 128,
1013
+ },
1014
+ tile: {
1015
+ download:
1016
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
1017
+ height: 57,
1018
+ width: 64,
1019
+ },
1020
+ tiny: {
1021
+ download:
1022
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
1023
+ height: 21,
1024
+ width: 24,
1025
+ },
1026
+ wide: {
1027
+ download:
1028
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
1029
+ height: 183,
1030
+ width: 202,
1031
+ },
1032
+ xlarge: {
1033
+ download:
1034
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
1035
+ height: 857,
1036
+ width: 950,
1037
+ },
1038
+ },
1039
+ size: 193122,
1040
+ width: 1281,
1041
+ },
1042
+ ],
1043
+ },
1044
+ title: 'stupid google answer.png',
1045
+ },
1046
+ ],
1047
+ imageSize: 'icon',
1048
+ },
1049
+ 'e43b45aa-9d1c-40ea-925d-109eae7fd68f': {
1050
+ '@type': 'tab',
1051
+ assetPosition: 'top',
1052
+ assetType: 'image',
1053
+ blocks: {
1054
+ '144e2b39-5d31-41e3-8d6e-e7fbf525b768': {
1055
+ '@type': 'slate',
1056
+ plaintext: 'tab 3',
1057
+ value: [
1058
+ {
1059
+ children: [
1060
+ {
1061
+ text: 'tab 3',
1062
+ },
1063
+ ],
1064
+ type: 'p',
1065
+ },
1066
+ ],
1067
+ },
1068
+ },
1069
+ blocks_layout: {
1070
+ items: ['144e2b39-5d31-41e3-8d6e-e7fbf525b768'],
1071
+ },
1072
+ iconSize: 'small',
1073
+ image: [
1074
+ {
1075
+ '@id': '/sandbox/stupid-google-answer.png',
1076
+ image_field: 'image',
1077
+ image_scales: {
1078
+ image: [
1079
+ {
1080
+ 'content-type': 'image/png',
1081
+ download:
1082
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
1083
+ filename: 'stupid google answer.png',
1084
+ height: 1156,
1085
+ scales: {
1086
+ big: {
1087
+ download:
1088
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
1089
+ height: 72,
1090
+ width: 80,
1091
+ },
1092
+ great: {
1093
+ download:
1094
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
1095
+ height: 1082,
1096
+ width: 1200,
1097
+ },
1098
+ icon: {
1099
+ download:
1100
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
1101
+ height: 28,
1102
+ width: 32,
1103
+ },
1104
+ large: {
1105
+ download:
1106
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
1107
+ height: 721,
1108
+ width: 800,
1109
+ },
1110
+ larger: {
1111
+ download:
1112
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
1113
+ height: 902,
1114
+ width: 1000,
1115
+ },
1116
+ listing: {
1117
+ download:
1118
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
1119
+ height: 14,
1120
+ width: 16,
1121
+ },
1122
+ medium: {
1123
+ download:
1124
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
1125
+ height: 54,
1126
+ width: 60,
1127
+ },
1128
+ mini: {
1129
+ download:
1130
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
1131
+ height: 180,
1132
+ width: 200,
1133
+ },
1134
+ portrait: {
1135
+ download:
1136
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
1137
+ height: 695,
1138
+ width: 771,
1139
+ },
1140
+ preview: {
1141
+ download:
1142
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
1143
+ height: 360,
1144
+ width: 400,
1145
+ },
1146
+ small: {
1147
+ download:
1148
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
1149
+ height: 43,
1150
+ width: 48,
1151
+ },
1152
+ teaser: {
1153
+ download:
1154
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
1155
+ height: 541,
1156
+ width: 600,
1157
+ },
1158
+ thumb: {
1159
+ download:
1160
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
1161
+ height: 115,
1162
+ width: 128,
1163
+ },
1164
+ tile: {
1165
+ download:
1166
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
1167
+ height: 57,
1168
+ width: 64,
1169
+ },
1170
+ tiny: {
1171
+ download:
1172
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
1173
+ height: 21,
1174
+ width: 24,
1175
+ },
1176
+ wide: {
1177
+ download:
1178
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
1179
+ height: 183,
1180
+ width: 202,
1181
+ },
1182
+ xlarge: {
1183
+ download:
1184
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
1185
+ height: 857,
1186
+ width: 950,
1187
+ },
1188
+ },
1189
+ size: 193122,
1190
+ width: 1281,
1191
+ },
1192
+ ],
1193
+ },
1194
+ title: 'stupid google answer.png',
1195
+ },
1196
+ ],
1197
+ imageSize: 'icon',
1198
+ },
1199
+ 'eaa08b7b-474d-42f4-96cc-785f7e8455ac': {
1200
+ '@type': 'tab',
1201
+ assetPosition: 'top',
1202
+ assetType: 'image',
1203
+ blocks: {
1204
+ '297e6aa6-ffc1-4189-b28b-febc81da32f6': {
1205
+ '@type': 'slate',
1206
+ },
1207
+ },
1208
+ blocks_layout: {
1209
+ items: ['297e6aa6-ffc1-4189-b28b-febc81da32f6'],
1210
+ },
1211
+ iconSize: 'small',
1212
+ image: [
1213
+ {
1214
+ '@id': '/sandbox/stupid-google-answer.png',
1215
+ image_field: 'image',
1216
+ image_scales: {
1217
+ image: [
1218
+ {
1219
+ 'content-type': 'image/png',
1220
+ download:
1221
+ '@@images/8d779e05-e82e-46df-bab1-cddaa10d2a4e.png',
1222
+ filename: 'stupid google answer.png',
1223
+ height: 1156,
1224
+ scales: {
1225
+ big: {
1226
+ download:
1227
+ '@@images/4440f293-f10a-4e88-9db8-25629dc1e98a.png',
1228
+ height: 72,
1229
+ width: 80,
1230
+ },
1231
+ great: {
1232
+ download:
1233
+ '@@images/9a342bf1-5495-4656-90e6-d86ae9338b49.png',
1234
+ height: 1082,
1235
+ width: 1200,
1236
+ },
1237
+ icon: {
1238
+ download:
1239
+ '@@images/4d3c97e6-67d2-4618-95c8-ae2775f53183.png',
1240
+ height: 28,
1241
+ width: 32,
1242
+ },
1243
+ large: {
1244
+ download:
1245
+ '@@images/247a72d6-14cb-43d0-a4d2-b380ae4ef55d.png',
1246
+ height: 721,
1247
+ width: 800,
1248
+ },
1249
+ larger: {
1250
+ download:
1251
+ '@@images/be047d41-b062-48cd-b6c5-ad07d9302072.png',
1252
+ height: 902,
1253
+ width: 1000,
1254
+ },
1255
+ listing: {
1256
+ download:
1257
+ '@@images/4e979b36-e5dc-43a8-b5b9-2f8370bb2880.png',
1258
+ height: 14,
1259
+ width: 16,
1260
+ },
1261
+ medium: {
1262
+ download:
1263
+ '@@images/93213e1e-1719-4e18-a727-7256319c2393.png',
1264
+ height: 54,
1265
+ width: 60,
1266
+ },
1267
+ mini: {
1268
+ download:
1269
+ '@@images/6e2e3027-9cff-4294-9fd3-14ea18eea077.png',
1270
+ height: 180,
1271
+ width: 200,
1272
+ },
1273
+ portrait: {
1274
+ download:
1275
+ '@@images/62d66fe3-ba2d-4644-adcf-99de5aa0cdef.png',
1276
+ height: 695,
1277
+ width: 771,
1278
+ },
1279
+ preview: {
1280
+ download:
1281
+ '@@images/46d99556-436f-4b39-aa5a-eb01e5b05ee0.png',
1282
+ height: 360,
1283
+ width: 400,
1284
+ },
1285
+ small: {
1286
+ download:
1287
+ '@@images/c230b55b-b21b-4469-a37e-87658846f556.png',
1288
+ height: 43,
1289
+ width: 48,
1290
+ },
1291
+ teaser: {
1292
+ download:
1293
+ '@@images/0690878f-5349-45c6-beeb-0a40c8e09832.png',
1294
+ height: 541,
1295
+ width: 600,
1296
+ },
1297
+ thumb: {
1298
+ download:
1299
+ '@@images/2b3fc70c-faf3-4026-9334-5ff304edaa70.png',
1300
+ height: 115,
1301
+ width: 128,
1302
+ },
1303
+ tile: {
1304
+ download:
1305
+ '@@images/93e58831-e74e-4555-985e-980bd2324ef6.png',
1306
+ height: 57,
1307
+ width: 64,
1308
+ },
1309
+ tiny: {
1310
+ download:
1311
+ '@@images/80347191-eb2a-4894-b85e-1bb6398f4cd5.png',
1312
+ height: 21,
1313
+ width: 24,
1314
+ },
1315
+ wide: {
1316
+ download:
1317
+ '@@images/7bd71040-ddb5-41ed-86ac-84341fede37f.png',
1318
+ height: 183,
1319
+ width: 202,
1320
+ },
1321
+ xlarge: {
1322
+ download:
1323
+ '@@images/ae2d41cf-5e57-464d-84f9-6e8777a58e72.png',
1324
+ height: 857,
1325
+ width: 950,
1326
+ },
1327
+ },
1328
+ size: 193122,
1329
+ width: 1281,
1330
+ },
1331
+ ],
1332
+ },
1333
+ title: 'stupid google answer.png',
1334
+ },
1335
+ ],
1336
+ imageSize: 'icon',
1337
+ },
1338
+ },
1339
+ blocks_layout: {
1340
+ items: [
1341
+ 'c46b71ec-434c-4b5b-925b-b821327df036',
1342
+ '4f11fadc-c195-40a1-8252-c6f9518da4f6',
1343
+ 'e43b45aa-9d1c-40ea-925d-109eae7fd68f',
1344
+ '05130306-68cd-43c4-bf29-38653e55b3d1',
1345
+ '76c5aabc-efcc-4a36-99ce-d930a3069dd2',
1346
+ 'e32a75f9-d0bf-4a06-a35c-9d6d14e0aa19',
1347
+ '7cde1ed2-2f60-4cd6-9164-d8598bcc9914',
1348
+ 'eaa08b7b-474d-42f4-96cc-785f7e8455ac',
1349
+ '96470737-007c-4bd3-a2c1-d1fd2749db8a',
1350
+ ],
1351
+ },
1352
+ iconSize: 'small',
1353
+ imageSize: 'icon',
1354
+ },
1355
+ menuFluid: true,
1356
+ menuInverted: false,
1357
+ menuPointing: true,
1358
+ menuSecondary: true,
1359
+ variation: 'spotlight',
1360
+ verticalAlign: 'flex-start',
1361
+ };
1362
+
1363
+ const store = mockStore({
1364
+ userSession: { token: '1234' },
1365
+ intl: {
1366
+ locale: 'en',
1367
+ messages: {},
1368
+ },
1369
+ });
1370
+
1371
+ const { container } = render(
1372
+ <Provider store={store}>
1373
+ <MemoryRouter>
1374
+ <Spotlight {...data} />
1375
+ </MemoryRouter>
1376
+ </Provider>,
1377
+ );
1378
+ expect(container.querySelector('.spotlight-tabs')).toBeInTheDocument();
1379
+ });
1380
+ });