diff --git a/packages/page-experience/lib/checks/earlyIframes.js b/packages/page-experience/lib/checks/earlyIframes.js index b6d715b48..db036725c 100644 --- a/packages/page-experience/lib/checks/earlyIframes.js +++ b/packages/page-experience/lib/checks/earlyIframes.js @@ -32,7 +32,7 @@ const earlyIframes = (pageData, result) => { result.addDetails({ headings: [{label: 'src', valueType: 'text', key: 'src'}], items: pageData.criticalIframes.map((iframeSrc) => { - return {src: iframeSrc}; + return {src: `\`${iframeSrc}\``}; }), }); }; diff --git a/packages/page-experience/lib/checks/heroImages.js b/packages/page-experience/lib/checks/heroImages.js index 4afda9c4e..06d1d45f7 100644 --- a/packages/page-experience/lib/checks/heroImages.js +++ b/packages/page-experience/lib/checks/heroImages.js @@ -38,7 +38,7 @@ const heroImages = (pageData, result) => { headings: [{label: 'Affected images', valueType: 'text', key: 'image'}], items: heroImageCandidates.map((img) => { return { - image: ``, + image: `\`\``, }; }), }); diff --git a/packages/page-experience/test-data/checks/earlyIframes/iframe-in-first-viewport.json b/packages/page-experience/test-data/checks/earlyIframes/iframe-in-first-viewport.json index 9dcec9b25..daad7bfe4 100644 --- a/packages/page-experience/test-data/checks/earlyIframes/iframe-in-first-viewport.json +++ b/packages/page-experience/test-data/checks/earlyIframes/iframe-in-first-viewport.json @@ -10,7 +10,7 @@ ], "items": [ { - "src": "https://www.google.com/maps/embed/v1/place?key=AIzaSyAyAS599A2GGPKTmtNr9CptD61LE4gN6oQ&q=iceland" + "src": "`https://www.google.com/maps/embed/v1/place?key=AIzaSyAyAS599A2GGPKTmtNr9CptD61LE4gN6oQ&q=iceland`" } ] } diff --git a/packages/page-experience/test-data/checks/heroImages/image-in-first-viewport.json b/packages/page-experience/test-data/checks/heroImages/image-in-first-viewport.json index 6e555c87d..6efb35d36 100644 --- a/packages/page-experience/test-data/checks/heroImages/image-in-first-viewport.json +++ b/packages/page-experience/test-data/checks/heroImages/image-in-first-viewport.json @@ -10,7 +10,7 @@ ], "items": [ { - "image": "" + "image": "``" } ] }