src/app/legacy/components/ScrollablePromo/helpers/fixtureData.js
export const threeLinks = [
{
id: '65244df2',
type: 'title',
model: {
blocks: [
{
id: 'ac758d53',
type: 'text',
model: {
blocks: [
{
id: 'dceb59b2',
type: 'paragraph',
model: {
text: 'Show all links (no images)',
blocks: [
{
id: 'a93c297a',
type: 'fragment',
model: {
text: 'Show all links (no images)',
attributes: [],
},
position: [4, 1, 1, 1, 1],
},
],
},
position: [4, 1, 1, 1],
},
],
},
position: [4, 1, 1],
},
],
},
position: [4, 1],
},
{
id: '9f20a126',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.co.uk%2Fpidgin',
blocks: [
{
id: 'ce117a2a',
type: 'image',
model: {
blocks: [
{
id: 'bd0ae1fb',
type: 'altText',
model: {
blocks: [
{
id: 'cd3057ed',
type: 'text',
model: {
blocks: [
{
id: 'e90d411b',
type: 'paragraph',
model: {
text: 'Image to ignore',
blocks: [
{
id: '74665eb7',
type: 'fragment',
model: {
text: 'Image to ignore',
attributes: [],
},
position: [4, 2, 1, 1, 1, 1, 1],
},
],
},
position: [4, 2, 1, 1, 1, 1],
},
],
},
position: [4, 2, 1, 1, 1],
},
],
},
position: [4, 2, 1, 1],
},
{
id: '30c25ace',
type: 'rawImage',
model: {
width: 976,
height: 549,
locator: '37e1/test/80c445c0-5431-11ec-b75b-9f9fe566903d.jpg',
imageType: 'background',
originCode: 'cpsdevpb',
copyrightHolder: 'BBC',
},
position: [4, 2, 1, 2],
},
],
},
position: [4, 2, 1],
},
{
id: 'dce72a7b',
type: 'text',
model: {
blocks: [
{
id: '9a484ba0',
type: 'paragraph',
model: {
text: 'Show headline',
blocks: [
{
id: 'bd64c9f2',
type: 'urlLink',
model: {
text: 'Show headline',
locator: 'https://www.bbc.co.uk/pidgin',
blocks: [
{
id: '3fcfe68d',
type: 'fragment',
model: {
text: 'Show headline',
attributes: [],
},
position: [4, 2, 2, 1, 1, 1],
},
],
isExternal: false,
},
position: [4, 2, 2, 1, 1],
},
],
},
position: [4, 2, 2, 1],
},
],
},
position: [4, 2, 2],
},
],
},
position: [4, 2],
},
{
id: '31553901',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fmundo',
blocks: [
{
id: 'd7bff4c9',
type: 'text',
model: {
blocks: [
{
id: '2d16f249',
type: 'paragraph',
model: {
text: 'Link with Headline',
blocks: [
{
id: '8f2d3f60',
type: 'urlLink',
model: {
text: 'Link with Headline',
locator: 'https://www.bbc.com/mundo',
blocks: [
{
id: '5114f0ff',
type: 'fragment',
model: {
text: 'Link with Headline',
attributes: [],
},
position: [4, 3, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [4, 3, 1, 1, 1],
},
],
},
position: [4, 3, 1, 1],
},
],
},
position: [4, 3, 1],
},
],
},
position: [4, 3],
},
{
id: '5c979041',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fbrasil',
blocks: [
{
id: '7ad184aa',
type: 'text',
model: {
blocks: [
{
id: '57c9fb66',
type: 'paragraph',
model: {
text: 'Brasil homepage',
blocks: [
{
id: 'a0f0efea',
type: 'urlLink',
model: {
text: 'Brasil homepage',
locator: 'https://www.bbc.com/brasil',
blocks: [
{
id: '883f74a8',
type: 'fragment',
model: {
text: 'Brasil homepage',
attributes: [],
},
position: [4, 4, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [4, 4, 1, 1, 1],
},
],
},
position: [4, 4, 1, 1],
},
],
},
position: [4, 4, 1],
},
],
},
position: [4, 4],
},
];
export const oneLinkOnly = [
{
id: '37565636',
type: 'title',
model: {
blocks: [
{
id: '11be264d',
type: 'text',
model: {
blocks: [
{
id: '788da801',
type: 'paragraph',
model: {
text: 'Single link',
blocks: [
{
id: '2d0ec328',
type: 'fragment',
model: {
text: 'Single link',
attributes: [],
},
position: [6, 1, 1, 1, 1],
},
],
},
position: [6, 1, 1, 1],
},
],
},
position: [6, 1, 1],
},
],
},
position: [6, 1],
},
{
id: 'c8c7230b',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fpidgin',
blocks: [
{
id: '380f85cc',
type: 'text',
model: {
blocks: [
{
id: '4e012660',
type: 'paragraph',
model: {
text: 'Single link',
blocks: [
{
id: '1073b03b',
type: 'urlLink',
model: {
text: 'Single link',
locator: 'https://www.bbc.com/pidgin',
blocks: [
{
id: 'f60e5db4',
type: 'fragment',
model: {
text: 'Single link',
attributes: [],
},
position: [6, 2, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [6, 2, 1, 1, 1],
},
],
},
position: [6, 2, 1, 1],
},
],
},
position: [6, 2, 1],
},
],
},
position: [6, 2],
},
];
export const oneLinkWithNoTitle = [
{
id: 'c8c7230b',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fpidgin',
blocks: [
{
id: '380f85cc',
type: 'text',
model: {
blocks: [
{
id: '4e012660',
type: 'paragraph',
model: {
text: 'Single link',
blocks: [
{
id: '1073b03b',
type: 'urlLink',
model: {
text: 'Single link',
locator: 'https://www.bbc.com/pidgin',
blocks: [
{
id: 'f60e5db4',
type: 'fragment',
model: {
text: 'Single link',
attributes: [],
},
position: [6, 2, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [6, 2, 1, 1, 1],
},
],
},
position: [6, 2, 1, 1],
},
],
},
position: [6, 2, 1],
},
],
},
position: [6, 2],
},
];
export const oneLinkWithTimestamp = [
{
id: 'c8c7230b',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fpidgin',
blocks: [
{
id: '380f85cc',
type: 'text',
model: {
blocks: [
{
id: '4e012660',
type: 'paragraph',
model: {
text: 'Single link',
blocks: [
{
id: '1073b03b',
type: 'urlLink',
model: {
text: 'Single link',
locator: 'https://www.bbc.com/pidgin',
blocks: [
{
id: 'f60e5db4',
type: 'fragment',
model: {
text: 'Single link',
attributes: [],
},
position: [6, 2, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [6, 2, 1, 1, 1],
},
],
},
position: [6, 2, 1, 1],
},
],
},
position: [6, 2, 1],
},
{
type: 'aresLink',
model: {
blocks: [
{
type: 'optimoLinkMetadata',
model: {
timestamp: 1646912992130,
},
},
],
},
},
],
},
position: [6, 2],
},
];
export const moreThanThreeLinks = [
{
id: '14353f48',
type: 'title',
model: {
blocks: [
{
id: '38aa920f',
type: 'text',
model: {
blocks: [
{
id: '78567d93',
type: 'paragraph',
model: {
text: 'Only show 3 links',
blocks: [
{
id: '7560b769',
type: 'fragment',
model: {
text: 'Only show 3 links',
attributes: [],
},
position: [9, 1, 1, 1, 1],
},
],
},
position: [9, 1, 1, 1],
},
],
},
position: [9, 1, 1],
},
],
},
position: [9, 1],
},
{
id: 'c0cfe753',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fpidgin',
blocks: [
{
id: '6b670713',
type: 'text',
model: {
blocks: [
{
id: '43dcff41',
type: 'paragraph',
model: {
text: 'Link 1',
blocks: [
{
id: 'e3cb4046',
type: 'urlLink',
model: {
text: 'Link 1',
locator: 'https://www.bbc.com/pidgin',
blocks: [
{
id: '83b6ce48',
type: 'fragment',
model: {
text: 'Link 1',
attributes: [],
},
position: [9, 2, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [9, 2, 1, 1, 1],
},
],
},
position: [9, 2, 1, 1],
},
],
},
position: [9, 2, 1],
},
],
},
position: [9, 2],
},
{
id: '53d95de2',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fmundo',
blocks: [
{
id: '4d127e6c',
type: 'text',
model: {
blocks: [
{
id: '29335f86',
type: 'paragraph',
model: {
text: 'Link 2',
blocks: [
{
id: '50dd34e5',
type: 'urlLink',
model: {
text: 'Link 2',
locator: 'https://www.bbc.com/mundo',
blocks: [
{
id: '543c38de',
type: 'fragment',
model: {
text: 'Link 2',
attributes: [],
},
position: [9, 3, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [9, 3, 1, 1, 1],
},
],
},
position: [9, 3, 1, 1],
},
],
},
position: [9, 3, 1],
},
],
},
position: [9, 3],
},
{
id: 'ea9ab3aa',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fyoruba',
blocks: [
{
id: '3ca6d9ef',
type: 'text',
model: {
blocks: [
{
id: 'a5ae9099',
type: 'paragraph',
model: {
text: 'Link 3',
blocks: [
{
id: '373e8d1f',
type: 'urlLink',
model: {
text: 'Link 3',
locator: 'https://www.bbc.com/yoruba',
blocks: [
{
id: '916a12b4',
type: 'fragment',
model: {
text: 'Link 3',
attributes: [],
},
position: [9, 4, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [9, 4, 1, 1, 1],
},
],
},
position: [9, 4, 1, 1],
},
],
},
position: [9, 4, 1],
},
],
},
position: [9, 4],
},
{
id: '3c58ed5f',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fbrasil',
blocks: [
{
id: '0645d9e5',
type: 'text',
model: {
blocks: [
{
id: '85b41435',
type: 'paragraph',
model: {
text: 'Link 4 (not shown)',
blocks: [
{
id: '14784e1d',
type: 'urlLink',
model: {
text: 'Link 4 (not shown)',
locator: 'https://www.bbc.com/brasil',
blocks: [
{
id: 'a8fd4b7b',
type: 'fragment',
model: {
text: 'Link 4 (not shown)',
attributes: [],
},
position: [9, 5, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [9, 5, 1, 1, 1],
},
],
},
position: [9, 5, 1, 1],
},
],
},
position: [9, 5, 1],
},
],
},
position: [9, 5],
},
{
id: '3f183501',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Farabic',
blocks: [
{
id: 'baf50be9',
type: 'text',
model: {
blocks: [
{
id: 'e3e0c693',
type: 'paragraph',
model: {
text: 'Link 5 (not shown)',
blocks: [
{
id: 'bec1285e',
type: 'urlLink',
model: {
text: 'Link 5 (not shown)',
locator: 'https://www.bbc.com/arabic',
blocks: [
{
id: '8cd85098',
type: 'fragment',
model: {
text: 'Link 5 (not shown)',
attributes: [],
},
position: [9, 6, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [9, 6, 1, 1, 1],
},
],
},
position: [9, 6, 1, 1],
},
],
},
position: [9, 6, 1],
},
],
},
position: [9, 6],
},
];
export const twoLinksWithNoImages = [
{
id: '6094788b',
type: 'title',
model: {
blocks: [
{
id: '0da06296',
type: 'text',
model: {
blocks: [
{
id: '651f71f7',
type: 'paragraph',
model: {
text: 'Related content block',
blocks: [
{
id: '1d9b2e4b',
type: 'fragment',
model: {
text: 'Related content block',
attributes: [],
},
position: [11, 1, 1, 1, 1],
},
],
},
position: [11, 1, 1, 1],
},
],
},
position: [11, 1, 1],
},
],
},
position: [11, 1],
},
{
id: '917068ee',
type: 'link',
model: {
locator: 'urn:bbc:cps:curie:asset:b5c53243-a695-e059-e040-850a02846523',
blocks: [
{
id: 'e2985057',
type: 'image',
model: {
blocks: [
{
id: 'b916cbb4',
type: 'altText',
model: {
blocks: [
{
id: '888acd78',
type: 'text',
model: {
blocks: [
{
id: '455d60d9',
type: 'paragraph',
model: {
text: 'BBC Test Image',
blocks: [
{
id: '69469437',
type: 'fragment',
model: {
text: 'BBC Test Image',
attributes: [],
},
position: [11, 2, 1, 1, 1, 1, 1],
},
],
},
position: [11, 2, 1, 1, 1, 1],
},
],
},
position: [11, 2, 1, 1, 1],
},
],
},
position: [11, 2, 1, 1],
},
{
id: '0faf474c',
type: 'rawImage',
model: {
width: 640,
height: 562,
locator: '72c5/test/47abb9d0-5431-11ec-b75b-9f9fe566903d.png',
imageType: 'background',
originCode: 'cpsdevpb',
copyrightHolder: 'BBC',
},
position: [11, 2, 1, 2],
},
],
},
position: [11, 2, 1],
},
{
id: '09895543',
type: 'text',
model: {
blocks: [
{
id: '339fae7d',
type: 'paragraph',
model: {
text: 'News homepage',
blocks: [
{
id: '55ab3b1e',
type: 'urlLink',
model: {
text: 'News homepage',
locator: 'https://www.bbc.co.uk/news',
blocks: [
{
id: 'bbe8d9a3',
type: 'fragment',
model: {
text: 'News homepage',
attributes: [],
},
position: [11, 2, 2, 1, 1, 1],
},
],
isExternal: false,
},
position: [11, 2, 2, 1, 1],
},
],
},
position: [11, 2, 2, 1],
},
],
},
position: [11, 2, 2],
},
],
},
position: [11, 2],
},
{
id: 'ba2f138e',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.co.uk%2Fmundo',
blocks: [
{
id: '75a668fa',
type: 'image',
model: {
blocks: [
{
id: '95f2de22',
type: 'altText',
model: {
blocks: [
{
id: 'feee9929',
type: 'text',
model: {
blocks: [
{
id: 'b3d07168',
type: 'paragraph',
model: {
text: 'Breaking News image',
blocks: [
{
id: 'deff6fcd',
type: 'fragment',
model: {
text: 'Breaking News image',
attributes: [],
},
position: [11, 3, 1, 1, 1, 1, 1],
},
],
},
position: [11, 3, 1, 1, 1, 1],
},
],
},
position: [11, 3, 1, 1, 1],
},
],
},
position: [11, 3, 1, 1],
},
{
id: 'fd7fac0f',
type: 'rawImage',
model: {
width: 976,
height: 549,
locator: '33e9/test/5efe5660-5431-11ec-b75b-9f9fe566903d.jpg',
imageType: 'background',
originCode: 'cpsdevpb',
copyrightHolder: 'BBC',
},
position: [11, 3, 1, 2],
},
],
},
position: [11, 3, 1],
},
{
id: '35aea9c8',
type: 'text',
model: {
blocks: [
{
id: 'e638573a',
type: 'paragraph',
model: {
text: 'Mundo homepage',
blocks: [
{
id: 'a80e1290',
type: 'urlLink',
model: {
text: 'Mundo homepage',
locator: 'https://www.bbc.co.uk/mundo',
blocks: [
{
id: 'fe04d224',
type: 'fragment',
model: {
text: 'Mundo homepage',
attributes: [],
},
position: [11, 3, 2, 1, 1, 1],
},
],
isExternal: false,
},
position: [11, 3, 2, 1, 1],
},
],
},
position: [11, 3, 2, 1],
},
],
},
position: [11, 3, 2],
},
],
},
position: [11, 3],
},
];
export const truncatedTextInSingleLink = [
{
id: '5d61cd4d',
type: 'title',
model: {
blocks: [
{
id: 'ae43bde9',
type: 'text',
model: {
blocks: [
{
id: '0ed4ba3b',
type: 'paragraph',
model: {
text: 'Long headline ',
blocks: [
{
id: 'a58d6e0d',
type: 'fragment',
model: {
text: 'Long headline ',
attributes: [],
},
position: [8, 1, 1, 1, 1],
},
],
},
position: [8, 1, 1, 1],
},
],
},
position: [8, 1, 1],
},
],
},
position: [8, 1],
},
{
id: '7a95c68b',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.co.uk%2Fyoruba',
blocks: [
{
id: '45baebd4',
type: 'text',
model: {
blocks: [
{
id: '4ef372bc',
type: 'paragraph',
model: {
text: 'This is a long headline that should be truncated to 4 lines only in the promo. I could go on and on and on and on and on. ',
blocks: [
{
id: 'eb171843',
type: 'urlLink',
model: {
text: 'This is a long headline that should be truncated to 4 lines only in the promo. I could go on and on and on and on and on. ',
locator: 'https://www.bbc.co.uk/yoruba',
blocks: [
{
id: '45829882',
type: 'fragment',
model: {
text: 'This is a long headline that should be truncated to 4 lines only in the promo. I could go on and on and on and on and on. ',
attributes: [],
},
position: [8, 2, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [8, 2, 1, 1, 1],
},
],
},
position: [8, 2, 1, 1],
},
],
},
position: [8, 2, 1],
},
],
},
position: [8, 2],
},
];
export const arabicText = [
{
id: '0d7aadd6',
type: 'title',
model: {
blocks: [
{
id: '5d993f48',
type: 'text',
model: {
blocks: [
{
id: 'afe03471',
type: 'paragraph',
model: {
text: 'RtoL links',
blocks: [
{
id: '6116d28d',
type: 'fragment',
model: {
text: 'RtoL links',
attributes: [],
},
position: [3, 1, 1, 1, 1],
},
],
},
position: [3, 1, 1, 1],
},
],
},
position: [3, 1, 1],
},
],
},
position: [3, 1],
},
{
id: 'cd46e6ce',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.co.uk%2Fpidgin',
blocks: [
{
id: '49d593cf',
type: 'text',
model: {
blocks: [
{
id: '17a114e5',
type: 'paragraph',
model: {
text: 'الرابط 1',
blocks: [
{
id: '518f41d5',
type: 'urlLink',
model: {
text: 'الرابط 1',
locator: 'https://www.bbc.co.uk/pidgin',
blocks: [
{
id: 'a53a813a',
type: 'fragment',
model: {
text: 'الرابط 1',
attributes: [],
},
position: [3, 2, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [3, 2, 1, 1, 1],
},
],
},
position: [3, 2, 1, 1],
},
],
},
position: [3, 2, 1],
},
],
},
position: [3, 2],
},
{
id: '797df02f',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.co.uk%2Fyoruba',
blocks: [
{
id: 'b646e3ee',
type: 'text',
model: {
blocks: [
{
id: '3a37671f',
type: 'paragraph',
model: {
text: 'الرابط 2',
blocks: [
{
id: 'f533639e',
type: 'urlLink',
model: {
text: 'الرابط 2',
locator: 'https://www.bbc.co.uk/yoruba',
blocks: [
{
id: 'f11ff010',
type: 'fragment',
model: {
text: 'الرابط 2',
attributes: [],
},
position: [3, 3, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [3, 3, 1, 1, 1],
},
],
},
position: [3, 3, 1, 1],
},
],
},
position: [3, 3, 1],
},
],
},
position: [3, 3],
},
{
id: '8897bd31',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.co.uk%2Fbrasil',
blocks: [
{
id: 'a7fbaf66',
type: 'text',
model: {
blocks: [
{
id: 'afd40306',
type: 'paragraph',
model: {
text: 'الرابط 3',
blocks: [
{
id: '417a701d',
type: 'urlLink',
model: {
text: 'الرابط 3',
locator: 'https://www.bbc.co.uk/brasil',
blocks: [
{
id: '9a7f43f5',
type: 'fragment',
model: {
text: 'الرابط 3',
attributes: [],
},
position: [3, 4, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [3, 4, 1, 1, 1],
},
],
},
position: [3, 4, 1, 1],
},
],
},
position: [3, 4, 1],
},
],
},
position: [3, 4],
},
];
export const PromoSingleBlock = {
id: 'f783bde4',
type: 'link',
model: {
locator: 'urn:bbc:content:url-promo:https%3A%2F%2Fwww.bbc.com%2Fmundo',
blocks: [
{
id: '07bb30d5',
type: 'text',
model: {
blocks: [
{
id: '91046714',
type: 'paragraph',
model: {
text: 'This is a very long headline. I am creating this for a test purpose. I love creating these type of tests. I really do not know what to write.',
blocks: [
{
id: '5c980d47',
type: 'urlLink',
model: {
text: 'This is a very long headline. I am creating this for a test purpose. I love creating these type of tests. I really do not know what to write.',
locator: 'https://www.bbc.com/mundo',
blocks: [
{
id: '683ec1db',
type: 'fragment',
model: {
text: 'This is a very long headline. I am creating this for a test purpose. I love creating these type of tests. I really do not know what to write.',
attributes: [],
},
position: [5, 3, 1, 1, 1, 1],
},
],
isExternal: false,
},
position: [5, 3, 1, 1, 1],
},
],
},
position: [5, 3, 1, 1],
},
],
},
position: [5, 3, 1],
},
],
},
position: [5, 3],
};