diff --git a/cypress/e2e/pages/homePage/testsForAMPOnly.js b/cypress/e2e/pages/homePage/testsForAMPOnly.js deleted file mode 100644 index 0a235f33240..00000000000 --- a/cypress/e2e/pages/homePage/testsForAMPOnly.js +++ /dev/null @@ -1,8 +0,0 @@ -import runAdsTests from '../../../support/helpers/adsTests/testsForAMPOnly'; -import getAppEnv from '../../../support/helpers/getAppEnv'; - -export default ({ service }) => { - if (getAppEnv() === 'local') { - runAdsTests({ service }); - } -}; diff --git a/cypress/e2e/specialFeatures/cookieBanner/index.cy.js b/cypress/e2e/specialFeatures/cookieBanner/index.cy.js index 4c7c793e1f3..cd788499958 100644 --- a/cypress/e2e/specialFeatures/cookieBanner/index.cy.js +++ b/cypress/e2e/specialFeatures/cookieBanner/index.cy.js @@ -45,6 +45,8 @@ Object.keys(config) .filter(service => serviceFilter(service)) .forEach(service => { const { variant } = config[service]; + const variantPath = variant === 'default' ? '' : `/${variant}`; + const isHomePagePath = path => path === `/${service}${variantPath}`; const paths = getPaths(service); paths.forEach(path => { @@ -56,6 +58,7 @@ Object.keys(config) }); paths + .filter(path => !isHomePagePath(path)) .map(path => `${path}.amp`) .forEach(path => { if (!urlsToExcludeFromAmpTests.some(url => path.includes(url))) { diff --git a/scripts/ampHtmlValidator/index.js b/scripts/ampHtmlValidator/index.js index 83105083994..f84c3f35d65 100644 --- a/scripts/ampHtmlValidator/index.js +++ b/scripts/ampHtmlValidator/index.js @@ -60,10 +60,8 @@ const runValidator = async () => { .flat() .filter(url => !excludedUrls.includes(url)); - // include kyrgyz homepage in amp validator tests const urlsToValidate = [ ...urls, - '/kyrgyz', '/mundo/articles/ce42wzqr2mko', '/news/articles/cn7k01xp8kxo', '/persian/articles/cej3lzd5e0go', diff --git a/src/app/routes/utils/regex/utils/__snapshots__/index.test.js.snap b/src/app/routes/utils/regex/utils/__snapshots__/index.test.js.snap index d6ece1b3e72..57f07ba1eff 100644 --- a/src/app/routes/utils/regex/utils/__snapshots__/index.test.js.snap +++ b/src/app/routes/utils/regex/utils/__snapshots__/index.test.js.snap @@ -28,9 +28,9 @@ exports[`regex utils snapshots should create expected regex from getFrontPageReg exports[`regex utils snapshots should create expected regex from getFrontPageRegex when isLive = true 1`] = `"/:service(archive|cymrufyw|naidheachdan|news|newsround|scotland|sport|ukchina|ws):variant(/simp|/trad|/cyr|/lat)?:amp(.amp)?:lite(.lite)?"`; -exports[`regex utils snapshots should create expected regex from getHomePageRegex when isLive = false 1`] = `"/:service(afaanoromoo|afrique|amharic|arabic|archive|azeri|bengali|burmese|cymrufyw|gahuza|gujarati|hausa|hindi|igbo|indonesia|japanese|korean|kyrgyz|marathi|mundo|naidheachdan|nepali|news|newsround|pashto|persian|pidgin|portuguese|punjabi|russian|scotland|serbian|sinhala|somali|sport|swahili|tamil|telugu|thai|tigrinya|turkce|ukchina|ukrainian|urdu|uzbek|vietnamese|ws|yoruba|zhongwen):variant(/simp|/trad|/cyr|/lat)?:amp(.amp)?:lite(.lite)?"`; +exports[`regex utils snapshots should create expected regex from getHomePageRegex when isLive = false 1`] = `"/:service(afaanoromoo|afrique|amharic|arabic|archive|azeri|bengali|burmese|cymrufyw|gahuza|gujarati|hausa|hindi|igbo|indonesia|japanese|korean|kyrgyz|marathi|mundo|naidheachdan|nepali|news|newsround|pashto|persian|pidgin|portuguese|punjabi|russian|scotland|serbian|sinhala|somali|sport|swahili|tamil|telugu|thai|tigrinya|turkce|ukchina|ukrainian|urdu|uzbek|vietnamese|ws|yoruba|zhongwen):variant(/simp|/trad|/cyr|/lat)?:lite(.lite)?"`; -exports[`regex utils snapshots should create expected regex from getHomePageRegex when isLive = true 1`] = `"/:service(afaanoromoo|afrique|amharic|arabic|azeri|bengali|burmese|gahuza|gujarati|hausa|hindi|igbo|indonesia|japanese|korean|kyrgyz|marathi|mundo|nepali|pashto|persian|pidgin|portuguese|punjabi|russian|serbian|sinhala|somali|swahili|tamil|telugu|thai|tigrinya|turkce|ukrainian|urdu|uzbek|vietnamese|yoruba|zhongwen):variant(/simp|/trad|/cyr|/lat)?:amp(.amp)?:lite(.lite)?"`; +exports[`regex utils snapshots should create expected regex from getHomePageRegex when isLive = true 1`] = `"/:service(afaanoromoo|afrique|amharic|arabic|azeri|bengali|burmese|gahuza|gujarati|hausa|hindi|igbo|indonesia|japanese|korean|kyrgyz|marathi|mundo|nepali|pashto|persian|pidgin|portuguese|punjabi|russian|serbian|sinhala|somali|swahili|tamil|telugu|thai|tigrinya|turkce|ukrainian|urdu|uzbek|vietnamese|yoruba|zhongwen):variant(/simp|/trad|/cyr|/lat)?:lite(.lite)?"`; exports[`regex utils snapshots should create expected regex from getLegacyAssetRegex when isLive = false 1`] = `"/:service(afaanoromoo|afrique|amharic|arabic|archive|azeri|bengali|burmese|cymrufyw|gahuza|gujarati|hausa|hindi|igbo|indonesia|japanese|korean|kyrgyz|marathi|mundo|naidheachdan|nepali|news|newsround|pashto|persian|pidgin|portuguese|punjabi|russian|scotland|serbian|sinhala|somali|sport|swahili|tamil|telugu|thai|tigrinya|turkce|ukchina|ukrainian|urdu|uzbek|vietnamese|ws|yoruba|zhongwen):variant(/simp|/trad|/cyr|/lat)?/:assetUri([a-z0-9-_]{1,}/[a-z0-9-_/]{1,}):amp(.amp)?:lite(.lite)?"`; diff --git a/src/app/routes/utils/regex/utils/index.js b/src/app/routes/utils/regex/utils/index.js index 1a5188d593d..0a94245b594 100644 --- a/src/app/routes/utils/regex/utils/index.js +++ b/src/app/routes/utils/regex/utils/index.js @@ -96,7 +96,7 @@ export const getHomePageRegex = services => { homePages = services.filter(service => homePageServices.includes(service)); } const homePageServiceRegex = getServiceRegex(homePages); - return `/:service(${homePageServiceRegex}):variant(${variantRegex})?:amp(${ampRegex})?:lite(${liteRegex})?`; + return `/:service(${homePageServiceRegex}):variant(${variantRegex})?:lite(${liteRegex})?`; }; export const getSwRegex = services => { diff --git a/src/integration/pages/homePage/ampTests.js b/src/integration/pages/homePage/ampTests.js deleted file mode 100644 index 4fe9b15870f..00000000000 --- a/src/integration/pages/homePage/ampTests.js +++ /dev/null @@ -1,28 +0,0 @@ -import { - runCoreAmpTests, - runAmpFooterTests, - runAmpAnalyticsTests, - runAmpAdsTests, -} from '../../common'; -import runCrossPlatformTests from './crossPlatformTests'; - -export default ({ service, pageData, displayAds }) => { - runCrossPlatformTests({ service, pageData }); - runAmpFooterTests(); - runCoreAmpTests(); - runAmpAnalyticsTests(); - - if (displayAds) { - runAmpAdsTests(); - } - - it('should render the correct number of curations, excluding most read', () => { - const curationsWithSummaries = pageData.curations.filter( - ({ summaries }) => summaries && summaries?.length > 0, - ); - - const numberOfCurations = document.querySelectorAll('main h2').length; - - expect(numberOfCurations).toEqual(curationsWithSummaries.length); - }); -}; diff --git a/src/integration/pages/homePage/arabic/__snapshots__/amp.test.js.snap b/src/integration/pages/homePage/arabic/__snapshots__/amp.test.js.snap deleted file mode 100644 index bf11dfc8ae1..00000000000 --- a/src/integration/pages/homePage/arabic/__snapshots__/amp.test.js.snap +++ /dev/null @@ -1,543 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AMP Home Page A11y I can see the skip to content link 1`] = `"إذهب الى المحتوى"`; - -exports[`AMP Home Page AMP Consent config 1`] = ` -{ - "consents": { - "user-consent": { - "promptIfUnknownForGeoGroup": "eea", - "promptUI": "consent-prompt", - }, - }, - "policy": { - "default": { - "timeout": { - "fallbackAction": "reject", - "seconds": 0, - }, - "waitFor": { - "user-consent": [], - }, - }, - }, -} -`; - -exports[`AMP Home Page AMP Geo config 1`] = ` -{ - "AmpBind": true, - "ISOCountryGroups": { - "eea": [ - "at", - "ax", - "be", - "bg", - "bl", - "cy", - "cz", - "de", - "dk", - "ea", - "ee", - "es", - "fi", - "fr", - "gb", - "gf", - "gg", - "gi", - "gp", - "gr", - "hr", - "hu", - "ic", - "ie", - "im", - "is", - "it", - "je", - "li", - "lt", - "lu", - "lv", - "mf", - "mq", - "mt", - "nc", - "nl", - "no", - "pf", - "pl", - "pm", - "pt", - "re", - "ro", - "se", - "si", - "sj", - "sk", - "tf", - "va", - "wf", - "yt", - ], - "gbOrUnknown": [ - "gb", - "gg", - "im", - "je", - "uk", - "unknown", - ], - }, -} -`; - -exports[`AMP Home Page Ads should have the following properties 1`] = ` - -`; - -exports[`AMP Home Page Ads should have the following properties 2`] = ` - -`; - -exports[`AMP Home Page Ads should have the following properties 3`] = ` - -`; - -exports[`AMP Home Page Analytics ATI 1`] = ` -{ - "requests": { - "base": "https://logws1363.ati-host.net?", - "pageview": "\${base}s=598343&s2=5&p=arabic.page&r=\${screenWidth}x\${screenHeight}x\${screenColorDepth}&re=\${availableScreenWidth}x\${availableScreenHeight}&hl=\${timestamp}&lng=\${browserLanguage}&x1=[urn%3Abbc%3Atipo%3Atopic%3Acx35pee6zvpt]&x2=[amp]&x3=[news-arabic]&x4=[ar]&x5=[\${sourceUrl}]&x6=[\${documentReferrer}]&x7=[index-home]&x8=[simorgh]&x9=[BBC%2520News%2520%D8%B9%D8%B1%D8%A8%D9%8A]&ref=\${documentReferrer}", - }, - "transport": { - "beacon": false, - "image": true, - "xhrpost": false, - }, - "triggers": { - "trackPageview": { - "on": "visible", - "request": "pageview", - }, - }, -} -`; - -exports[`AMP Home Page Analytics chartbeat 1`] = ` -{ - "vars": { - "contentType": "home", - "domain": "test.bbc.co.uk", - "sections": "Arabic, Arabic - home", - "title": "BBC News عربي", - "uid": 50924, - "virtualReferrer": "\${documentReferrer}", - }, -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 1`] = ` -{ - "text": "BBC News, عربي", - "url": "/arabic", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 2`] = ` -{ - "text": "لماذا يمكنك الاعتماد على أخبار بي بي سي", - "url": "https://www.bbc.com/arabic/institutional-49283069", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 3`] = ` -{ - "text": "شروط الاستخدام", - "url": "https://www.bbc.com/arabic/institutional-37731351", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 4`] = ` -{ - "text": "عن بي بي سي", - "url": "https://www.bbc.com/arabic/institutional-37731352", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 5`] = ` -{ - "text": "سياسة الخصوصية", - "url": "https://www.bbc.com/arabic/institutional-37731353", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 6`] = ` -{ - "text": "ملفات الارتباط Cookies", - "url": "https://www.bbc.com/usingthebbc/cookies/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 7`] = ` -{ - "text": "اتصل بـ بي بي سي", - "url": "https://www.bbc.co.uk/arabic/send/u50853203", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 8`] = ` -{ - "text": "بي بي سي نيوز عربي في لغات أخرى", - "url": "https://www.bbc.com/ws/languages", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 9`] = ` -{ - "text": "سياستنا بخصوص الروابط الخارجية.", - "url": "https://www.bbc.co.uk/editorialguidelines/guidance/feeds-and-links", -} -`; - -exports[`AMP Home Page Footer Cookie Settings Button should match text and on handler 1`] = ` -{ - "on": "tap:consent.prompt, privacy.hide, cookie.show, AMP.setState({ isManagingSettings: true })", - "text": "Do not share or sell my info", -} -`; - -exports[`AMP Home Page Footer I can click on the BBC branding and it would take me to the homepage 1`] = `"/arabic"`; - -exports[`AMP Home Page Footer Paragraphs should match text 1`] = `"© 2025 بي بي سي. بي بي سي ليست مسؤولة عن محتوى المواقع الخارجية. سياستنا بخصوص الروابط الخارجية."`; - -exports[`AMP Home Page Header I can see the branding 1`] = `"BBC News, عربي"`; - -exports[`AMP Home Page Header Navigation link should match text and url 1`] = ` -{ - "text": "الصفحة الحالية, رئيسية", - "url": "/arabic", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 2`] = ` -{ - "text": "شاهد البث المباشر", - "url": "/arabic/media-49522519", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 3`] = ` -{ - "text": "أخبار", - "url": "/arabic/topics/cv2xyrnr8dnt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 4`] = ` -{ - "text": "اقتصاد", - "url": "/arabic/topics/cqywj97d487t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 5`] = ` -{ - "text": "صحة وعلوم", - "url": "/arabic/topics/clmj3d7282gt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 6`] = ` -{ - "text": "رياضة", - "url": "/arabic/topics/cyx5kw7g1j2t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 7`] = ` -{ - "text": "فيديو", - "url": "/arabic/topics/cz9mm6r1q5et", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 8`] = ` -{ - "text": "تحقيقات", - "url": "/arabic/topics/c51nnzdeg9zt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 9`] = ` -{ - "text": "بودكاست", - "url": "/arabic/topics/cljddp5lw0dt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 10`] = ` -{ - "text": "برامجنا", - "url": "/arabic/topics/crgyknwdlwnt", -} -`; - -exports[`AMP Home Page Main heading should match text 1`] = `"BBC News, عربي - الرئيسية"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct headline 1`] = `"مرأة الخارقة ""`; - -exports[`AMP Home Page Page content First item in the first curation is the correct image 1`] = ` - -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 1`] = ` -{ - "sizes": null, - "url": "http://localhost:7080/arabic/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 2`] = ` -{ - "sizes": "72x72", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-72x72.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 3`] = ` -{ - "sizes": "96x96", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-96x96.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 4`] = ` -{ - "sizes": "128x128", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-128x128.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 5`] = ` -{ - "sizes": "144x144", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-144x144.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 6`] = ` -{ - "sizes": "152x152", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-152x152.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 7`] = ` -{ - "sizes": "180x180", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-180x180.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 8`] = ` -{ - "sizes": "192x192", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 9`] = ` -{ - "sizes": "384x384", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-384x384.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 10`] = ` -{ - "sizes": "512x512", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/arabic/images/icons/icon-512x512.png", -} -`; - -exports[`AMP Home Page SEO Canonical link 1`] = `"http://localhost:7080/arabic"`; - -exports[`AMP Home Page SEO Dir attribute 1`] = `"rtl"`; - -exports[`AMP Home Page SEO FB app ID 1`] = `"1609039196070050"`; - -exports[`AMP Home Page SEO Heading level 1 1`] = `"BBC News, عربي - الرئيسية"`; - -exports[`AMP Home Page SEO Lang attribute 1`] = `"ar"`; - -exports[`AMP Home Page SEO Linked data should match text 1`] = ` -{ - "@context": "http://schema.org", - "@graph": [ - { - "@type": "CollectionPage", - "headline": "BBC News عربي", - "image": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/arabic.png", - "width": 1024, - }, - "inLanguage": { - "@type": "Language", - "alternateName": "ar", - "name": "Arabic", - }, - "mainEntityOfPage": { - "@id": "http://localhost:7080/arabic", - "@type": "WebPage", - "name": "BBC News عربي", - }, - "publisher": { - "@type": "NewsMediaOrganization", - "logo": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/arabic.png", - "width": 1024, - }, - "name": "BBC News عربي", - "publishingPrinciples": "https://www.bbc.com/arabic/institutional-49283069", - }, - "thumbnailUrl": "https://news.files.bbci.co.uk/ws/img/logos/og/arabic.png", - "url": "http://localhost:7080/arabic", - }, - { - "@type": "ItemList", - "itemListElement": [ - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 1, - "url": "https://www.bbc.com/arabic/tv-and-radio-23233470", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 2, - "url": "https://www.bbc.com/arabic/23231121", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 3, - "url": "https://www.bbc.com/arabic/tv-and-radio-23233465", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 4, - "url": "https://www.bbc.com/swahili/23231091", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 5, - "url": "https://www.bbc.com/arabic/trending-23083197", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 6, - "url": "https://www.bbc.com/arabic/business-23083189", - }, - ], - "name": "BBC News عربي", - "numberOfItems": 6, - }, - ], -} -`; - -exports[`AMP Home Page SEO OG description 1`] = `"بي بي سي العربية هي شبكة لنقل الأخبار والمعلومات ومقاطع الفيديو إلى العالم عبر عدة وسائط، تشمل الإنترنت ومواقع التواصل الاجتماعي والراديو والتلفزيون والهواتف المحمولة."`; - -exports[`AMP Home Page SEO OG image 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/arabic.png"`; - -exports[`AMP Home Page SEO OG image alt 1`] = `"BBC News عربي"`; - -exports[`AMP Home Page SEO OG locale 1`] = `"ar"`; - -exports[`AMP Home Page SEO OG site name 1`] = `"BBC News عربي"`; - -exports[`AMP Home Page SEO OG title 1`] = `"الرئيسية - BBC News عربي"`; - -exports[`AMP Home Page SEO OG type 1`] = `"website"`; - -exports[`AMP Home Page SEO OG url 1`] = `"http://localhost:7080/arabic"`; - -exports[`AMP Home Page SEO Page title 1`] = `"الرئيسية - BBC News عربي"`; - -exports[`AMP Home Page SEO Robots meta tag 1`] = `"noodp, noydir, max-image-preview:large"`; - -exports[`AMP Home Page SEO Twitter card 1`] = `"summary_large_image"`; - -exports[`AMP Home Page SEO Twitter creator 1`] = `"@BBCArabic"`; - -exports[`AMP Home Page SEO Twitter description 1`] = `"بي بي سي العربية هي شبكة لنقل الأخبار والمعلومات ومقاطع الفيديو إلى العالم عبر عدة وسائط، تشمل الإنترنت ومواقع التواصل الاجتماعي والراديو والتلفزيون والهواتف المحمولة."`; - -exports[`AMP Home Page SEO Twitter image alt 1`] = `"BBC News عربي"`; - -exports[`AMP Home Page SEO Twitter image src 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/arabic.png"`; - -exports[`AMP Home Page SEO Twitter site 1`] = `"@BBCArabic"`; - -exports[`AMP Home Page SEO Twitter title 1`] = `"الرئيسية - BBC News عربي"`; - -exports[`AMP Home Page Timestamp should match text and date 1`] = ` -{ - "date": "2019-03-13", - "text": "13 مارس/ آذار 2019", -} -`; diff --git a/src/integration/pages/homePage/arabic/amp.test.js b/src/integration/pages/homePage/arabic/amp.test.js deleted file mode 100644 index 6bb155ae1cf..00000000000 --- a/src/integration/pages/homePage/arabic/amp.test.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @service arabic - * @pathname /arabic - * @displayAds true - */ - -import runAmpTests from '../ampTests'; -import { data as pageData } from '../../../../../data/arabic/homePage/index.json'; - -describe('AMP', () => { - describe(pageType, () => { - runAmpTests({ service, pageData, displayAds: true }); - }); -}); diff --git a/src/integration/pages/homePage/hindi/__snapshots__/amp.test.js.snap b/src/integration/pages/homePage/hindi/__snapshots__/amp.test.js.snap deleted file mode 100644 index 160bc8420b7..00000000000 --- a/src/integration/pages/homePage/hindi/__snapshots__/amp.test.js.snap +++ /dev/null @@ -1,483 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AMP Home Page A11y I can see the skip to content link 1`] = `"सामग्री को स्किप करें"`; - -exports[`AMP Home Page AMP Consent config 1`] = ` -{ - "consents": { - "user-consent": { - "promptIfUnknownForGeoGroup": "eea", - "promptUI": "consent-prompt", - }, - }, - "policy": { - "default": { - "timeout": { - "fallbackAction": "reject", - "seconds": 0, - }, - "waitFor": { - "user-consent": [], - }, - }, - }, -} -`; - -exports[`AMP Home Page AMP Geo config 1`] = ` -{ - "AmpBind": true, - "ISOCountryGroups": { - "eea": [ - "at", - "ax", - "be", - "bg", - "bl", - "cy", - "cz", - "de", - "dk", - "ea", - "ee", - "es", - "fi", - "fr", - "gb", - "gf", - "gg", - "gi", - "gp", - "gr", - "hr", - "hu", - "ic", - "ie", - "im", - "is", - "it", - "je", - "li", - "lt", - "lu", - "lv", - "mf", - "mq", - "mt", - "nc", - "nl", - "no", - "pf", - "pl", - "pm", - "pt", - "re", - "ro", - "se", - "si", - "sj", - "sk", - "tf", - "va", - "wf", - "yt", - ], - "gbOrUnknown": [ - "gb", - "gg", - "im", - "je", - "uk", - "unknown", - ], - }, -} -`; - -exports[`AMP Home Page Analytics ATI 1`] = ` -{ - "requests": { - "base": "https://logws1363.ati-host.net?", - "pageview": "\${base}s=598343&s2=52&p=hindi.page&r=\${screenWidth}x\${screenHeight}x\${screenColorDepth}&re=\${availableScreenWidth}x\${availableScreenHeight}&hl=\${timestamp}&lng=\${browserLanguage}&x1=[urn%3Abbc%3Atipo%3Atopic%3Acg8nwjjm7vet]&x2=[amp]&x3=[news-hindi]&x4=[hi]&x5=[\${sourceUrl}]&x6=[\${documentReferrer}]&x7=[index-home]&x8=[simorgh]&x9=[BBC%2520News%2520%E0%A4%B9%E0%A4%BF%E0%A4%82%E0%A4%A6%E0%A5%80]&ref=\${documentReferrer}", - }, - "transport": { - "beacon": false, - "image": true, - "xhrpost": false, - }, - "triggers": { - "trackPageview": { - "on": "visible", - "request": "pageview", - }, - }, -} -`; - -exports[`AMP Home Page Analytics chartbeat 1`] = ` -{ - "vars": { - "contentType": "home", - "domain": "test.bbc.co.uk", - "sections": "Hindi, Hindi - home", - "title": "BBC News हिंदी", - "uid": 50924, - "virtualReferrer": "\${documentReferrer}", - }, -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 1`] = ` -{ - "text": "BBC News, हिंदी", - "url": "/hindi", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 2`] = ` -{ - "text": "आप बीबीसी पर क्यों भरोसा कर सकते हैं", - "url": "https://www.bbc.com/hindi/institutional-50223932", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 3`] = ` -{ - "text": "इस्तेमाल की शर्तें", - "url": "https://www.bbc.com/hindi/institutional-37342293", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 4`] = ` -{ - "text": "बीबीसी के बारे में", - "url": "https://www.bbc.com/hindi/institutional-37343168", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 5`] = ` -{ - "text": "निजता की नीति", - "url": "https://www.bbc.com/hindi/institutional-37342614", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 6`] = ` -{ - "text": "कुकीज़", - "url": "https://www.bbc.com/usingthebbc/cookies/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 7`] = ` -{ - "text": "बीबीसी से संपर्क", - "url": "https://www.bbc.co.uk/hindi/send/u50853357", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 8`] = ` -{ - "text": "अन्य भाषाएँ", - "url": "https://www.bbc.com/ws/languages", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 9`] = ` -{ - "text": "बाहरी साइटों का लिंक देने की हमारी नीति के बारे में पढ़ें.", - "url": "https://www.bbc.co.uk/editorialguidelines/guidance/feeds-and-links", -} -`; - -exports[`AMP Home Page Footer Cookie Settings Button should match text and on handler 1`] = ` -{ - "on": "tap:consent.prompt, privacy.hide, cookie.show, AMP.setState({ isManagingSettings: true })", - "text": "Do not share or sell my info", -} -`; - -exports[`AMP Home Page Footer I can click on the BBC branding and it would take me to the homepage 1`] = `"/hindi"`; - -exports[`AMP Home Page Footer Paragraphs should match text 1`] = `"बीबीसी के लिए कलेक्टिव न्यूज़रूम की ओर से प्रकाशित"`; - -exports[`AMP Home Page Footer Paragraphs should match text 2`] = `"© 2025 BBC. बाहरी साइटों की सामग्री के लिए बीबीसी ज़िम्मेदार नहीं है. बाहरी साइटों का लिंक देने की हमारी नीति के बारे में पढ़ें."`; - -exports[`AMP Home Page Header I can see the branding 1`] = `"BBC News, हिंदी"`; - -exports[`AMP Home Page Header Navigation link should match text and url 1`] = ` -{ - "text": "मौजूदा पन्ना, होम पेज", - "url": "/hindi", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 2`] = ` -{ - "text": "दिल्ली विधानसभा चुनाव", - "url": "/hindi/topics/c8dqegnm6d9t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 3`] = ` -{ - "text": "भारत", - "url": "/hindi/topics/ckdxnkz7607t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 4`] = ` -{ - "text": "विदेश", - "url": "/hindi/topics/c9wpm0en87xt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 5`] = ` -{ - "text": "मनोरंजन", - "url": "/hindi/topics/c06gq3n0pp7t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 6`] = ` -{ - "text": "खेल", - "url": "/hindi/topics/cwr9j8g1kj9t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 7`] = ` -{ - "text": "विज्ञान-टेक्नॉलॉजी", - "url": "/hindi/topics/c2lej0594knt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 8`] = ` -{ - "text": "सोशल", - "url": "/hindi/topics/c2e4q0z9qznt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 9`] = ` -{ - "text": "वीडियो", - "url": "/hindi/topics/cw9kv0kpxydt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 10`] = ` -{ - "text": "पॉडकास्ट", - "url": "/hindi/institutional-61824775", -} -`; - -exports[`AMP Home Page Main heading should match text 1`] = `"BBC News, हिंदी - होम पेज"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct headline 1`] = `"पाक: मोदी की 'तारीफ़' पर गद्दारी का मुकदमा! 23"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct image 1`] = ` - -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 1`] = ` -{ - "sizes": null, - "url": "http://localhost:7080/hindi/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 2`] = ` -{ - "sizes": "72x72", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-72x72.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 3`] = ` -{ - "sizes": "96x96", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-96x96.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 4`] = ` -{ - "sizes": "128x128", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-128x128.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 5`] = ` -{ - "sizes": "144x144", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-144x144.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 6`] = ` -{ - "sizes": "152x152", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-152x152.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 7`] = ` -{ - "sizes": "180x180", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-180x180.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 8`] = ` -{ - "sizes": "192x192", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 9`] = ` -{ - "sizes": "384x384", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-384x384.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 10`] = ` -{ - "sizes": "512x512", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/hindi/images/icons/icon-512x512.png", -} -`; - -exports[`AMP Home Page SEO Canonical link 1`] = `"http://localhost:7080/hindi"`; - -exports[`AMP Home Page SEO Dir attribute 1`] = `"ltr"`; - -exports[`AMP Home Page SEO FB app ID 1`] = `"1609039196070050"`; - -exports[`AMP Home Page SEO Heading level 1 1`] = `"BBC News, हिंदी - होम पेज"`; - -exports[`AMP Home Page SEO Lang attribute 1`] = `"hi"`; - -exports[`AMP Home Page SEO Linked data should match text 1`] = ` -{ - "@context": "http://schema.org", - "@graph": [ - { - "@type": "CollectionPage", - "headline": "BBC News हिंदी", - "image": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/hindi.png", - "width": 1024, - }, - "inLanguage": { - "@type": "Language", - "alternateName": "hi", - "name": "Hindi", - }, - "mainEntityOfPage": { - "@id": "http://localhost:7080/hindi", - "@type": "WebPage", - "name": "BBC News हिंदी", - }, - "publisher": { - "@type": "NewsMediaOrganization", - "logo": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/hindi.png", - "width": 1024, - }, - "name": "BBC News हिंदी", - "publishingPrinciples": "https://www.bbc.com/hindi/institutional-50223932", - }, - "thumbnailUrl": "https://news.files.bbci.co.uk/ws/img/logos/og/hindi.png", - "url": "http://localhost:7080/hindi", - }, - { - "@type": "ItemList", - "itemListElement": [ - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 1, - "url": "https://www.bbc.com/hindi/23068682", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 2, - "url": "https://www.bbc.com/hindi/india-23075154", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 3, - "url": "https://www.bbc.com/hindi/international-23069805", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 4, - "url": "https://www.bbc.com/hindi/articles/c558wpnqq4qo", - }, - ], - "name": "BBC News हिंदी", - "numberOfItems": 4, - }, - ], -} -`; - -exports[`AMP Home Page SEO OG description 1`] = `"हिंदी में ताज़ा समाचार, ब्रेकिंग न्यूज़, वीडियो, ऑडियो और फ़ीचर. बीबीसी हिंदी डॉटकॉम पर भारत, पाकिस्तान और चीन सहित दुनिया भर की ताज़ा ख़बरें. BBC HINDI for up-to-the-minute news, breaking news, video, audio and feature stories."`; - -exports[`AMP Home Page SEO OG image 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/hindi.png"`; - -exports[`AMP Home Page SEO OG image alt 1`] = `"BBC News हिंदी"`; - -exports[`AMP Home Page SEO OG locale 1`] = `"hi-IN"`; - -exports[`AMP Home Page SEO OG site name 1`] = `"BBC News हिंदी"`; - -exports[`AMP Home Page SEO OG title 1`] = `"ब्रेकिंग न्यूज़ समाचार, ताजा खबर | News, latest news, breaking news - BBC News हिंदी"`; - -exports[`AMP Home Page SEO OG type 1`] = `"website"`; - -exports[`AMP Home Page SEO OG url 1`] = `"http://localhost:7080/hindi"`; - -exports[`AMP Home Page SEO Page title 1`] = `"ब्रेकिंग न्यूज़ समाचार, ताजा खबर | News, latest news, breaking news - BBC News हिंदी"`; - -exports[`AMP Home Page SEO Robots meta tag 1`] = `"noodp, noydir, max-image-preview:large"`; - -exports[`AMP Home Page SEO Twitter card 1`] = `"summary_large_image"`; - -exports[`AMP Home Page SEO Twitter creator 1`] = `"@bbchindi"`; - -exports[`AMP Home Page SEO Twitter description 1`] = `"हिंदी में ताज़ा समाचार, ब्रेकिंग न्यूज़, वीडियो, ऑडियो और फ़ीचर. बीबीसी हिंदी डॉटकॉम पर भारत, पाकिस्तान और चीन सहित दुनिया भर की ताज़ा ख़बरें. BBC HINDI for up-to-the-minute news, breaking news, video, audio and feature stories."`; - -exports[`AMP Home Page SEO Twitter image alt 1`] = `"BBC News हिंदी"`; - -exports[`AMP Home Page SEO Twitter image src 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/hindi.png"`; - -exports[`AMP Home Page SEO Twitter site 1`] = `"@bbchindi"`; - -exports[`AMP Home Page SEO Twitter title 1`] = `"ब्रेकिंग न्यूज़ समाचार, ताजा खबर | News, latest news, breaking news - BBC News हिंदी"`; - -exports[`AMP Home Page Timestamp should match text and date 1`] = ` -{ - "date": "2016-08-22", - "text": "22 अगस्त 2016", -} -`; diff --git a/src/integration/pages/homePage/hindi/amp.test.js b/src/integration/pages/homePage/hindi/amp.test.js deleted file mode 100644 index 0cc9d26b424..00000000000 --- a/src/integration/pages/homePage/hindi/amp.test.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @service hindi - * @pathname /hindi - */ - -import runAmpTests from '../ampTests'; -import { data as pageData } from '../../../../../data/hindi/homePage/index.json'; - -describe('AMP', () => { - describe(pageType, () => { - runAmpTests({ service, pageData }); - }); -}); diff --git a/src/integration/pages/homePage/kyrgyz/__snapshots__/amp.test.js.snap b/src/integration/pages/homePage/kyrgyz/__snapshots__/amp.test.js.snap deleted file mode 100644 index 36a46bf0a69..00000000000 --- a/src/integration/pages/homePage/kyrgyz/__snapshots__/amp.test.js.snap +++ /dev/null @@ -1,833 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AMP Home Page A11y I can see the skip to content link 1`] = `"Сайтка өтүү"`; - -exports[`AMP Home Page AMP Consent config 1`] = ` -{ - "consents": { - "user-consent": { - "promptIfUnknownForGeoGroup": "eea", - "promptUI": "consent-prompt", - }, - }, - "policy": { - "default": { - "timeout": { - "fallbackAction": "reject", - "seconds": 0, - }, - "waitFor": { - "user-consent": [], - }, - }, - }, -} -`; - -exports[`AMP Home Page AMP Geo config 1`] = ` -{ - "AmpBind": true, - "ISOCountryGroups": { - "eea": [ - "at", - "ax", - "be", - "bg", - "bl", - "cy", - "cz", - "de", - "dk", - "ea", - "ee", - "es", - "fi", - "fr", - "gb", - "gf", - "gg", - "gi", - "gp", - "gr", - "hr", - "hu", - "ic", - "ie", - "im", - "is", - "it", - "je", - "li", - "lt", - "lu", - "lv", - "mf", - "mq", - "mt", - "nc", - "nl", - "no", - "pf", - "pl", - "pm", - "pt", - "re", - "ro", - "se", - "si", - "sj", - "sk", - "tf", - "va", - "wf", - "yt", - ], - "gbOrUnknown": [ - "gb", - "gg", - "im", - "je", - "uk", - "unknown", - ], - }, -} -`; - -exports[`AMP Home Page Analytics ATI 1`] = ` -{ - "requests": { - "base": "https://logws1363.ati-host.net?", - "pageview": "\${base}s=598343&s2=58&p=kyrgyz.page&r=\${screenWidth}x\${screenHeight}x\${screenColorDepth}&re=\${availableScreenWidth}x\${availableScreenHeight}&hl=\${timestamp}&lng=\${browserLanguage}&x1=[urn%3Abbc%3Atipo%3Atopic%3Acm7682qz7v1t]&x2=[amp]&x3=[news-kyrgyz]&x4=[ky]&x5=[\${sourceUrl}]&x6=[\${documentReferrer}]&x7=[index-home]&x8=[simorgh]&x9=[BBC%2520News%2520Kyrgyz]&ref=\${documentReferrer}", - }, - "transport": { - "beacon": false, - "image": true, - "xhrpost": false, - }, - "triggers": { - "trackPageview": { - "on": "visible", - "request": "pageview", - }, - }, -} -`; - -exports[`AMP Home Page Analytics chartbeat 1`] = ` -{ - "vars": { - "contentType": "home", - "domain": "test.bbc.co.uk", - "sections": "Kyrgyz, Kyrgyz - home", - "title": "BBC News Kyrgyz", - "uid": 50924, - "virtualReferrer": "\${documentReferrer}", - }, -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 1`] = ` -{ - "text": "BBC News, Кыргыз КызMATы", - "url": "/kyrgyz", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 2`] = ` -{ - "text": "Эмнеге BBC News ишенсе болот?", - "url": "https://www.bbc.com/kyrgyz/institutional-49677275", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 3`] = ` -{ - "text": "Колдонуу эрежелери", - "url": "https://www.bbc.com/kyrgyz/institutional-38157280", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 4`] = ` -{ - "text": "Би-Би-Си жөнүндө", - "url": "https://www.bbc.com/kyrgyz/institutional-38157281", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 5`] = ` -{ - "text": "Купуялык", - "url": "https://www.bbc.com/kyrgyz/institutional-38157282", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 6`] = ` -{ - "text": "Cookies", - "url": "https://www.bbc.com/usingthebbc/cookies/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 7`] = ` -{ - "text": "Би-Би-Си менен байланышыңыз", - "url": "https://www.bbc.co.uk/kyrgyz/send/u50853445", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 8`] = ` -{ - "text": "Башка тилдерде", - "url": "https://www.bbc.com/ws/languages", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 9`] = ` -{ - "text": "Башка интернет сайттардын мазмуну боюнча биздин позиция.", - "url": "https://www.bbc.com/editorialguidelines/guidance/feeds-and-links", -} -`; - -exports[`AMP Home Page Footer Cookie Settings Button should match text and on handler 1`] = ` -{ - "on": "tap:consent.prompt, privacy.hide, cookie.show, AMP.setState({ isManagingSettings: true })", - "text": "Do not share or sell my info", -} -`; - -exports[`AMP Home Page Footer I can click on the BBC branding and it would take me to the homepage 1`] = `"/kyrgyz"`; - -exports[`AMP Home Page Footer Paragraphs should match text 1`] = `"© 2025 BBC. Би-Би-Си сырткы интернет сайттардын мазмуну үчүн жооптуу эмес. Башка интернет сайттардын мазмуну боюнча биздин позиция."`; - -exports[`AMP Home Page Header I can see the branding 1`] = `"BBC News, Кыргыз КызMATы"`; - -exports[`AMP Home Page Header Navigation link should match text and url 1`] = ` -{ - "text": "Ачылып турган баракча, Башталгыч бет", - "url": "/kyrgyz", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 2`] = ` -{ - "text": "Кыргызстан", - "url": "/kyrgyz/topics/cz74kjpyk07t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 3`] = ` -{ - "text": "Дүйнө", - "url": "/kyrgyz/topics/ck2l9z012nkt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 4`] = ` -{ - "text": "САПАР", - "url": "/kyrgyz/topics/c6z8lg83w7mt", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 5`] = ` -{ - "text": "Журнал", - "url": "/kyrgyz/topics/czp8pjrkgp0t", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 6`] = ` -{ - "text": "Подкасттар", - "url": "/kyrgyz/podcasts/p0c80v81", -} -`; - -exports[`AMP Home Page Main heading should match text 1`] = `"BBC News, Кыргыз КызMATы - Башталгыч бет"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct headline 1`] = `"Түз ободо, Overtyped Headline - Tipo Live Page (was photography)"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct image 1`] = ` - -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 1`] = ` -{ - "sizes": null, - "url": "http://localhost:7080/kyrgyz/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 2`] = ` -{ - "sizes": "72x72", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-72x72.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 3`] = ` -{ - "sizes": "96x96", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-96x96.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 4`] = ` -{ - "sizes": "128x128", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-128x128.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 5`] = ` -{ - "sizes": "144x144", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-144x144.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 6`] = ` -{ - "sizes": "152x152", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-152x152.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 7`] = ` -{ - "sizes": "180x180", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-180x180.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 8`] = ` -{ - "sizes": "192x192", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 9`] = ` -{ - "sizes": "384x384", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-384x384.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 10`] = ` -{ - "sizes": "512x512", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/kyrgyz/images/icons/icon-512x512.png", -} -`; - -exports[`AMP Home Page SEO Canonical link 1`] = `"http://localhost:7080/kyrgyz"`; - -exports[`AMP Home Page SEO Dir attribute 1`] = `"ltr"`; - -exports[`AMP Home Page SEO FB app ID 1`] = `"1609039196070050"`; - -exports[`AMP Home Page SEO Heading level 1 1`] = `"BBC News, Кыргыз КызMATы - Башталгыч бет"`; - -exports[`AMP Home Page SEO Lang attribute 1`] = `"ky"`; - -exports[`AMP Home Page SEO Linked data should match text 1`] = ` -{ - "@context": "http://schema.org", - "@graph": [ - { - "@type": "CollectionPage", - "headline": "BBC News Kyrgyz", - "image": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/kyrgyz.png", - "width": 1024, - }, - "inLanguage": { - "@type": "Language", - "alternateName": "ky", - "name": "Kyrgyz", - }, - "mainEntityOfPage": { - "@id": "http://localhost:7080/kyrgyz", - "@type": "WebPage", - "name": "BBC News Kyrgyz", - }, - "publisher": { - "@type": "NewsMediaOrganization", - "logo": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/kyrgyz.png", - "width": 1024, - }, - "name": "BBC News Кыргыз Кызматы", - "publishingPrinciples": "https://www.bbc.com/kyrgyz/institutional-49677275", - }, - "thumbnailUrl": "https://news.files.bbci.co.uk/ws/img/logos/og/kyrgyz.png", - "url": "http://localhost:7080/kyrgyz", - }, - { - "@type": "ItemList", - "itemListElement": [ - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 1, - "url": "https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=10", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 2, - "url": "https://www.bbc.com/news/topics/c77jz3mdmyvt", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 3, - "url": "https://www.bbc.com/weather/videos/cxvdd15r56do", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 4, - "url": "https://www.bbc.com/sport/live/c3jl8r5kpe2t", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 5, - "url": "https://www.bbc.com/sport/videos/c1ldm3kjnwyo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 6, - "url": "https://www.bbc.com/sport/rugby-union/articles/cr2ky03md5do", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 7, - "url": "https://www.bbc.com/sounds/play/m001dmln", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 8, - "url": "https://www.bbc.com/sport/rugby-union/23537091", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 9, - "url": "https://www.bbc.com/sport/articles/c5w90rmn69yo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 10, - "url": "https://www.bbc.com/sport/articles/cvl5vjypeveo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 11, - "url": "https://www.bbc.com/articles/cem4313m1ldo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 12, - "url": "https://www.bbc.com/portuguese/resources/idt-02d9060e-15dc-426c-bfe0-86a6437e5234", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 13, - "url": "https://www.bbc.com/kyrgyz/resources/idt-02d9060e-15dc-426c-bfe0-86a6437e5234", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 14, - "url": "https://www.bbc.com/kyrgyz/articles/cemg3359nwro", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 15, - "url": "https://www.bbc.com/kyrgyz/articles/cy0pvvd9jvpo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 16, - "url": "https://www.bbc.com/kyrgyz/articles/c1ldk6kl66wo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 17, - "url": "https://www.bbc.com/kyrgyz/articles/cmel5j6wwk2o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 18, - "url": "https://www.bbc.com/kyrgyz/articles/cd0x1jwnw66o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 19, - "url": "https://www.bbc.com/kyrgyz/articles/c65eglnzz1vo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 20, - "url": "https://www.bbc.com/kyrgyz/articles/cj2r5lzp6k0o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 21, - "url": "https://www.bbc.com/kyrgyz/articles/c2qz8l2zn5eo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 22, - "url": "https://www.bbc.com/kyrgyz/articles/cm18pzwq691o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 23, - "url": "https://www.bbc.com/kyrgyz/articles/cr89pqv3el2o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 24, - "url": "https://www.bbc.com/kyrgyz/articles/cr9p5rw62j7o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 25, - "url": "https://www.bbc.com/kyrgyz/articles/cnk23wye4kyo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 26, - "url": "https://www.bbc.com/kyrgyz/articles/c0n89302mwdo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 27, - "url": "https://www.bbc.com/kyrgyz/articles/clygdvn0vepo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 28, - "url": "https://www.bbc.com/kyrgyz/articles/c0n2glkxx13o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 29, - "url": "https://www.bbc.com/kyrgyz/articles/c85pqkmwkw5o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 30, - "url": "https://www.bbc.com/kyrgyz/articles/c85pqkmz8e2o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 31, - "url": "https://www.bbc.com/kyrgyz/articles/ck42g152vl6o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 32, - "url": "https://www.bbc.com/kyrgyz/articles/c6x9vjk8zy2o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 33, - "url": "https://www.bbc.com/kyrgyz/articles/cw1kzjme384o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 34, - "url": "https://www.bbc.com/kyrgyz/articles/c3d1vyrdx21o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 35, - "url": "https://www.bbc.com/kyrgyz/articles/c86jzl31jm5o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 36, - "url": "https://www.bbc.com/kyrgyz/articles/cp567nq7kx6o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 37, - "url": "https://www.bbc.com/kyrgyz/articles/cv748vmk2pno", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 38, - "url": "https://www.bbc.com/kyrgyz/articles/ck9yxzvv7deo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 39, - "url": "https://www.bbc.com/kyrgyz/articles/c380rxlx2z9o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 40, - "url": "https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=4", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 41, - "url": "https://www.bbc.com/kyrgyz/articles/cr91pzee4dro", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 42, - "url": "https://www.bbc.com/kyrgyz/articles/czmnz5184jeo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 43, - "url": "https://www.bbc.com/kyrgyz/articles/cd0nevdy25vo", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 44, - "url": "http://www.bbc.com/russian", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 45, - "url": "http://www.bbc.com/azeri", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 46, - "url": "http://www.bbc.com/uzbek", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 47, - "url": "http://www.bbc.com/turkce", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 48, - "url": "https://www.bbc.com/punjabi/topics/cz74k76n1jxt", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 49, - "url": "https://www.bbc.com/pidgin/live/cemy52djeq5t", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 50, - "url": "https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=6", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 51, - "url": "https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=8", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 52, - "url": "https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=7", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 53, - "url": "https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=9", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 54, - "url": "https://flo.uri.sh/story/2070814/embed", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 55, - "url": "https://www.bbc.com/", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 56, - "url": "https://news.files.bbci.com/include/vjsthasia/403-india_election_results_day/hindi/tally-include/embed", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 57, - "url": "https://www.test.bbc.com/pidgin/live/c7p765ynk9qt", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 58, - "url": "https://www.test.bbc.com/pidgin/live/cgl2vz8d587t", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 59, - "url": "https://www.test.bbc.com/pidgin/live/cy0mg3kvxnlt", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 60, - "url": "https://www.test.bbc.com/pidgin/live/cly58zvmwygt", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 61, - "url": "https://www.test.bbc.com/pidgin/live/cemy52djeq5t", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 62, - "url": "https://www.test.bbc.com/pidgin/live/c65nm48pr8et", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 63, - "url": "https://www.test.bbc.com/pidgin/live/cpvg17j60m7t", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 64, - "url": "https://www.test.bbc.com/pidgin/live/cg2pr8l7j3nt", - }, - ], - "name": "BBC News Кыргыз Кызматы", - "numberOfItems": 64, - }, - ], -} -`; - -exports[`AMP Home Page SEO OG description 1`] = ` -"Hello I am a description! I was added in the "Description" field from the Details section in Tipo -BBC Azeri curation should be Top Stories - VS = Collection / VP = High" -`; - -exports[`AMP Home Page SEO OG image 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/kyrgyz.png"`; - -exports[`AMP Home Page SEO OG image alt 1`] = `"BBC News Кыргыз КызMATы"`; - -exports[`AMP Home Page SEO OG locale 1`] = `"ky-KG"`; - -exports[`AMP Home Page SEO OG site name 1`] = `"BBC News Кыргыз Кызматы"`; - -exports[`AMP Home Page SEO OG title 1`] = `"Кабарлар, акыркы мүнөттөгү кабарлар, талдоо, видео - BBC News Кыргыз Кызматы"`; - -exports[`AMP Home Page SEO OG type 1`] = `"website"`; - -exports[`AMP Home Page SEO OG url 1`] = `"http://localhost:7080/kyrgyz"`; - -exports[`AMP Home Page SEO Page title 1`] = `"Кабарлар, акыркы мүнөттөгү кабарлар, талдоо, видео - BBC News Кыргыз Кызматы"`; - -exports[`AMP Home Page SEO Robots meta tag 1`] = `"noodp, noydir, max-image-preview:large"`; - -exports[`AMP Home Page SEO Twitter card 1`] = `"summary_large_image"`; - -exports[`AMP Home Page SEO Twitter creator 1`] = `"@bbckyrgyz"`; - -exports[`AMP Home Page SEO Twitter description 1`] = ` -"Hello I am a description! I was added in the "Description" field from the Details section in Tipo -BBC Azeri curation should be Top Stories - VS = Collection / VP = High" -`; - -exports[`AMP Home Page SEO Twitter image alt 1`] = `"BBC News Кыргыз КызMATы"`; - -exports[`AMP Home Page SEO Twitter image src 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/kyrgyz.png"`; - -exports[`AMP Home Page SEO Twitter site 1`] = `"@bbckyrgyz"`; - -exports[`AMP Home Page SEO Twitter title 1`] = `"Кабарлар, акыркы мүнөттөгү кабарлар, талдоо, видео - BBC News Кыргыз Кызматы"`; - -exports[`AMP Home Page Timestamp should match text and date 1`] = ` -{ - "date": "2023-03-28", - "text": "28 март 2023", -} -`; - -exports[`AMP Home Page messageBanner has a link 1`] = `"https://www.bbc.com/kyrgyz/bbc_kyrgyz_tv/tv_programmes/w13xttqx?limit=4"`; - -exports[`AMP Home Page messageBanner has an image 1`] = ` - -`; diff --git a/src/integration/pages/homePage/kyrgyz/amp.test.js b/src/integration/pages/homePage/kyrgyz/amp.test.js deleted file mode 100644 index 939a60eb5c6..00000000000 --- a/src/integration/pages/homePage/kyrgyz/amp.test.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @service kyrgyz - * @pathname /kyrgyz - */ - -import runAmpTests from '../ampTests'; -import { data as pageData } from '../../../../../data/kyrgyz/homePage/index.json'; - -describe('AMP', () => { - describe(pageType, () => { - runAmpTests({ service, pageData }); - }); -}); diff --git a/src/integration/pages/homePage/serbianCyr/__snapshots__/amp.test.js.snap b/src/integration/pages/homePage/serbianCyr/__snapshots__/amp.test.js.snap deleted file mode 100644 index 4065efce225..00000000000 --- a/src/integration/pages/homePage/serbianCyr/__snapshots__/amp.test.js.snap +++ /dev/null @@ -1,460 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AMP Home Page A11y I can see the skip to content link 1`] = `"Пређите на садржај"`; - -exports[`AMP Home Page AMP Consent config 1`] = ` -{ - "consents": { - "user-consent": { - "promptIfUnknownForGeoGroup": "eea", - "promptUI": "consent-prompt", - }, - }, - "policy": { - "default": { - "timeout": { - "fallbackAction": "reject", - "seconds": 0, - }, - "waitFor": { - "user-consent": [], - }, - }, - }, -} -`; - -exports[`AMP Home Page AMP Geo config 1`] = ` -{ - "AmpBind": true, - "ISOCountryGroups": { - "eea": [ - "at", - "ax", - "be", - "bg", - "bl", - "cy", - "cz", - "de", - "dk", - "ea", - "ee", - "es", - "fi", - "fr", - "gb", - "gf", - "gg", - "gi", - "gp", - "gr", - "hr", - "hu", - "ic", - "ie", - "im", - "is", - "it", - "je", - "li", - "lt", - "lu", - "lv", - "mf", - "mq", - "mt", - "nc", - "nl", - "no", - "pf", - "pl", - "pm", - "pt", - "re", - "ro", - "se", - "si", - "sj", - "sk", - "tf", - "va", - "wf", - "yt", - ], - "gbOrUnknown": [ - "gb", - "gg", - "im", - "je", - "uk", - "unknown", - ], - }, -} -`; - -exports[`AMP Home Page Analytics ATI 1`] = ` -{ - "requests": { - "base": "https://logws1363.ati-host.net?", - "pageview": "\${base}s=598343&s2=81&p=serbiancyr.page&r=\${screenWidth}x\${screenHeight}x\${screenColorDepth}&re=\${availableScreenWidth}x\${availableScreenHeight}&hl=\${timestamp}&lng=\${browserLanguage}&x1=[urn%3Abbc%3Atipo%3Atopic%3Ac6zr6pp47w7t]&x2=[amp]&x3=[news-serbian]&x4=[sr-cyrl]&x5=[\${sourceUrl}]&x6=[\${documentReferrer}]&x7=[index-home]&x8=[simorgh]&x9=[%D0%9F%D0%BE%D1%87%D0%B5%D1%82%D0%BD%D0%B0%2520%D1%81%D1%82%D1%80%D0%B0%D0%BD%D0%B8%D1%86%D0%B0]&ref=\${documentReferrer}", - }, - "transport": { - "beacon": false, - "image": true, - "xhrpost": false, - }, - "triggers": { - "trackPageview": { - "on": "visible", - "request": "pageview", - }, - }, -} -`; - -exports[`AMP Home Page Analytics chartbeat 1`] = ` -{ - "vars": { - "contentType": "home", - "domain": "test.bbc.co.uk", - "sections": "Serbian, Serbian - home", - "title": "Почетна страница", - "uid": 50924, - "virtualReferrer": "\${documentReferrer}", - }, -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 1`] = ` -{ - "text": "BBC News, на српском", - "url": "/serbian/cyr", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 2`] = ` -{ - "text": "Зашто ББЦ заслужује ваше поверење", - "url": "https://www.bbc.com/serbian/cyr/institutional-50173730", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 3`] = ` -{ - "text": "Правила коришћења", - "url": "https://www.bbc.com/terms", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 4`] = ` -{ - "text": "О ББЦ-ју", - "url": "https://www.bbc.co.uk/aboutthebbc/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 5`] = ` -{ - "text": "Правила приватности", - "url": "https://www.bbc.com/privacy/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 6`] = ` -{ - "text": "Колачићи", - "url": "https://www.bbc.com/usingthebbc/cookies/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 7`] = ` -{ - "text": "Контактирајте ББЦ", - "url": "https://www.bbc.co.uk/serbian/send/u50853665", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 8`] = ` -{ - "text": "BBC News на другим језицима", - "url": "https://www.bbc.com/ws/languages", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 9`] = ` -{ - "text": "Прочитајте наша правила о линковању других сајтова.", - "url": "https://www.bbc.co.uk/editorialguidelines/guidance/feeds-and-links", -} -`; - -exports[`AMP Home Page Footer Cookie Settings Button should match text and on handler 1`] = ` -{ - "on": "tap:consent.prompt, privacy.hide, cookie.show, AMP.setState({ isManagingSettings: true })", - "text": "Do not share or sell my info", -} -`; - -exports[`AMP Home Page Footer I can click on the BBC branding and it would take me to the homepage 1`] = `"/serbian/cyr"`; - -exports[`AMP Home Page Footer Paragraphs should match text 1`] = `"© 2025 BBC. ББЦ није одговоран за садржај других сајтова. Прочитајте наша правила о линковању других сајтова."`; - -exports[`AMP Home Page Header I can see the branding 1`] = `"BBC News, на српском"`; - -exports[`AMP Home Page Header Navigation link should match text and url 1`] = ` -{ - "text": "Отворена страница, Почетна страна", - "url": "/serbian/cyr", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 2`] = ` -{ - "text": "Студентске блокаде", - "url": "/serbian/topics/cly9dd4w09wt/cyr", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 3`] = ` -{ - "text": "Србија", - "url": "/serbian/topics/cr50vdy9q6wt/cyr", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 4`] = ` -{ - "text": "Балкан", - "url": "/serbian/topics/c06g87137jgt/cyr", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 5`] = ` -{ - "text": "Свет", - "url": "/serbian/topics/c2lej05e1eqt/cyr", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 6`] = ` -{ - "text": "Видео", - "url": "/serbian/topics/c44vyp5g049t/cyr", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 7`] = ` -{ - "text": "Најпопуларније", - "url": "/serbian/cyr/popular/read", -} -`; - -exports[`AMP Home Page Main heading should match text 1`] = `"BBC News, на српском - Главна страница"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct headline 1`] = `"Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct image 1`] = ` - -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 1`] = ` -{ - "sizes": null, - "url": "http://localhost:7080/serbian/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 2`] = ` -{ - "sizes": "72x72", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-72x72.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 3`] = ` -{ - "sizes": "96x96", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-96x96.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 4`] = ` -{ - "sizes": "128x128", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-128x128.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 5`] = ` -{ - "sizes": "144x144", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-144x144.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 6`] = ` -{ - "sizes": "152x152", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-152x152.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 7`] = ` -{ - "sizes": "180x180", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-180x180.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 8`] = ` -{ - "sizes": "192x192", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 9`] = ` -{ - "sizes": "384x384", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-384x384.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 10`] = ` -{ - "sizes": "512x512", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-512x512.png", -} -`; - -exports[`AMP Home Page SEO Canonical link 1`] = `"http://localhost:7080/serbian/cyr"`; - -exports[`AMP Home Page SEO Dir attribute 1`] = `"ltr"`; - -exports[`AMP Home Page SEO FB app ID 1`] = `"1609039196070050"`; - -exports[`AMP Home Page SEO Heading level 1 1`] = `"BBC News, на српском - Главна страница"`; - -exports[`AMP Home Page SEO Lang attribute 1`] = `"sr-cyrl"`; - -exports[`AMP Home Page SEO Linked data should match text 1`] = ` -{ - "@context": "http://schema.org", - "@graph": [ - { - "@type": "CollectionPage", - "headline": "Почетна страница", - "image": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png", - "width": 1024, - }, - "inLanguage": { - "@type": "Language", - "alternateName": "sr-cyrl", - "name": "Serbian", - }, - "mainEntityOfPage": { - "@id": "http://localhost:7080/serbian/cyr", - "@type": "WebPage", - "name": "Почетна страница", - }, - "publisher": { - "@type": "NewsMediaOrganization", - "logo": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png", - "width": 1024, - }, - "name": "BBC News на српском", - "publishingPrinciples": "https://www.bbc.com/serbian/cyr/institutional-50173730", - }, - "thumbnailUrl": "https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png", - "url": "http://localhost:7080/serbian/cyr", - }, - { - "@type": "ItemList", - "itemListElement": [ - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 1, - "url": "https://www.bbc.com/serbian/articles/czmk8npevn0o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 2, - "url": "https://www.bbc.com/serbian/articles/c3x8zzpdy8ko/lat", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 3, - "url": "https://www.bbc.com/serbian/articles/cqy6nykzpwmo/lat", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 4, - "url": "https://www.bbc.com/serbian/articles/c3v223kzpzko", - }, - ], - "name": "BBC News на српском", - "numberOfItems": 4, - }, - ], -} -`; - -exports[`AMP Home Page SEO OG description 1`] = `"Српска почетна страница"`; - -exports[`AMP Home Page SEO OG image 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png"`; - -exports[`AMP Home Page SEO OG image alt 1`] = `"ББЦ News на српском"`; - -exports[`AMP Home Page SEO OG locale 1`] = `"sr-cyrl"`; - -exports[`AMP Home Page SEO OG site name 1`] = `"BBC News на српском"`; - -exports[`AMP Home Page SEO OG title 1`] = `"Главна страница - BBC News на српском"`; - -exports[`AMP Home Page SEO OG type 1`] = `"website"`; - -exports[`AMP Home Page SEO OG url 1`] = `"http://localhost:7080/serbian/cyr"`; - -exports[`AMP Home Page SEO Page title 1`] = `"Главна страница - BBC News на српском"`; - -exports[`AMP Home Page SEO Robots meta tag 1`] = `"noodp, noydir, max-image-preview:large"`; - -exports[`AMP Home Page SEO Twitter card 1`] = `"summary_large_image"`; - -exports[`AMP Home Page SEO Twitter creator 1`] = `"@bbcnasrpskom"`; - -exports[`AMP Home Page SEO Twitter description 1`] = `"Српска почетна страница"`; - -exports[`AMP Home Page SEO Twitter image alt 1`] = `"ББЦ News на српском"`; - -exports[`AMP Home Page SEO Twitter image src 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png"`; - -exports[`AMP Home Page SEO Twitter site 1`] = `"@bbcnasrpskom"`; - -exports[`AMP Home Page SEO Twitter title 1`] = `"Главна страница - BBC News на српском"`; - -exports[`AMP Home Page Timestamp should match text and date 1`] = ` -{ - "date": "2024-07-30", - "text": "30 јул 2024", -} -`; diff --git a/src/integration/pages/homePage/serbianCyr/amp.test.js b/src/integration/pages/homePage/serbianCyr/amp.test.js deleted file mode 100644 index 2a641267a35..00000000000 --- a/src/integration/pages/homePage/serbianCyr/amp.test.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @service serbian - * @pathname /serbian/cyr - */ - -import runAmpTests from '../ampTests'; -import { data as pageData } from '../../../../../data/serbian/homePage/cyr.json'; - -describe('AMP', () => { - describe(pageType, () => { - runAmpTests({ service, pageData }); - }); -}); diff --git a/src/integration/pages/homePage/serbianLat/__snapshots__/amp.test.js.snap b/src/integration/pages/homePage/serbianLat/__snapshots__/amp.test.js.snap deleted file mode 100644 index b0628084556..00000000000 --- a/src/integration/pages/homePage/serbianLat/__snapshots__/amp.test.js.snap +++ /dev/null @@ -1,460 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`AMP Home Page A11y I can see the skip to content link 1`] = `"Pređite na sadržaj"`; - -exports[`AMP Home Page AMP Consent config 1`] = ` -{ - "consents": { - "user-consent": { - "promptIfUnknownForGeoGroup": "eea", - "promptUI": "consent-prompt", - }, - }, - "policy": { - "default": { - "timeout": { - "fallbackAction": "reject", - "seconds": 0, - }, - "waitFor": { - "user-consent": [], - }, - }, - }, -} -`; - -exports[`AMP Home Page AMP Geo config 1`] = ` -{ - "AmpBind": true, - "ISOCountryGroups": { - "eea": [ - "at", - "ax", - "be", - "bg", - "bl", - "cy", - "cz", - "de", - "dk", - "ea", - "ee", - "es", - "fi", - "fr", - "gb", - "gf", - "gg", - "gi", - "gp", - "gr", - "hr", - "hu", - "ic", - "ie", - "im", - "is", - "it", - "je", - "li", - "lt", - "lu", - "lv", - "mf", - "mq", - "mt", - "nc", - "nl", - "no", - "pf", - "pl", - "pm", - "pt", - "re", - "ro", - "se", - "si", - "sj", - "sk", - "tf", - "va", - "wf", - "yt", - ], - "gbOrUnknown": [ - "gb", - "gg", - "im", - "je", - "uk", - "unknown", - ], - }, -} -`; - -exports[`AMP Home Page Analytics ATI 1`] = ` -{ - "requests": { - "base": "https://logws1363.ati-host.net?", - "pageview": "\${base}s=598343&s2=81&p=serbianlat.page&r=\${screenWidth}x\${screenHeight}x\${screenColorDepth}&re=\${availableScreenWidth}x\${availableScreenHeight}&hl=\${timestamp}&lng=\${browserLanguage}&x1=[urn%3Abbc%3Atipo%3Atopic%3Ac6zr6pp47w7t]&x2=[amp]&x3=[news-serbian]&x4=[sr-latn]&x5=[\${sourceUrl}]&x6=[\${documentReferrer}]&x7=[index-home]&x8=[simorgh]&x9=[Po%C4%8Detna%2520stranica]&ref=\${documentReferrer}", - }, - "transport": { - "beacon": false, - "image": true, - "xhrpost": false, - }, - "triggers": { - "trackPageview": { - "on": "visible", - "request": "pageview", - }, - }, -} -`; - -exports[`AMP Home Page Analytics chartbeat 1`] = ` -{ - "vars": { - "contentType": "home", - "domain": "test.bbc.co.uk", - "sections": "Serbian, Serbian - home", - "title": "Početna stranica", - "uid": 50924, - "virtualReferrer": "\${documentReferrer}", - }, -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 1`] = ` -{ - "text": "BBC News, na srpskom", - "url": "/serbian/lat", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 2`] = ` -{ - "text": "Zašto BBC zaslužuje vaše poverenje", - "url": "https://www.bbc.com/serbian/lat/institutional-50173730", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 3`] = ` -{ - "text": "Pravila korišćenja", - "url": "https://www.bbc.com/terms", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 4`] = ` -{ - "text": "O BBC-ju", - "url": "https://www.bbc.co.uk/aboutthebbc/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 5`] = ` -{ - "text": "Pravila privatnosti", - "url": "https://www.bbc.com/privacy/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 6`] = ` -{ - "text": "Kolačići", - "url": "https://www.bbc.com/usingthebbc/cookies/", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 7`] = ` -{ - "text": "Kontaktirajte BBC", - "url": "https://www.bbc.co.uk/serbian/send/u50853665", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 8`] = ` -{ - "text": "BBC News na drugim jezicima", - "url": "https://www.bbc.com/ws/languages", -} -`; - -exports[`AMP Home Page Footer Anchors should match text and url 9`] = ` -{ - "text": "Pročitajte naša pravila o linkovanju drugih sajtova.", - "url": "https://www.bbc.co.uk/editorialguidelines/guidance/feeds-and-links", -} -`; - -exports[`AMP Home Page Footer Cookie Settings Button should match text and on handler 1`] = ` -{ - "on": "tap:consent.prompt, privacy.hide, cookie.show, AMP.setState({ isManagingSettings: true })", - "text": "Do not share or sell my info", -} -`; - -exports[`AMP Home Page Footer I can click on the BBC branding and it would take me to the homepage 1`] = `"/serbian/lat"`; - -exports[`AMP Home Page Footer Paragraphs should match text 1`] = `"© 2025 BBC. BBC nije odgovoran za sadržaj drugih sajtova. Pročitajte naša pravila o linkovanju drugih sajtova."`; - -exports[`AMP Home Page Header I can see the branding 1`] = `"BBC News, na srpskom"`; - -exports[`AMP Home Page Header Navigation link should match text and url 1`] = ` -{ - "text": "Otvorena stranica, Početna strana", - "url": "/serbian/lat", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 2`] = ` -{ - "text": "Studentske blokade", - "url": "/serbian/topics/cly9dd4w09wt/lat", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 3`] = ` -{ - "text": "Srbija", - "url": "/serbian/topics/cr50vdy9q6wt/lat", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 4`] = ` -{ - "text": "Balkan", - "url": "/serbian/topics/c06g87137jgt/lat", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 5`] = ` -{ - "text": "Svet", - "url": "/serbian/topics/c2lej05e1eqt/lat", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 6`] = ` -{ - "text": "Video", - "url": "/serbian/topics/c44vyp5g049t/lat", -} -`; - -exports[`AMP Home Page Header Navigation link should match text and url 7`] = ` -{ - "text": "Najpopularnije", - "url": "/serbian/lat/popular/read", -} -`; - -exports[`AMP Home Page Main heading should match text 1`] = `"BBC News, na srpskom - Glavna stranica"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct headline 1`] = `"Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo"`; - -exports[`AMP Home Page Page content First item in the first curation is the correct image 1`] = ` - -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 1`] = ` -{ - "sizes": null, - "url": "http://localhost:7080/serbian/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 2`] = ` -{ - "sizes": "72x72", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-72x72.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 3`] = ` -{ - "sizes": "96x96", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-96x96.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 4`] = ` -{ - "sizes": "128x128", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-128x128.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 5`] = ` -{ - "sizes": "144x144", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-144x144.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 6`] = ` -{ - "sizes": "152x152", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-152x152.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 7`] = ` -{ - "sizes": "180x180", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-180x180.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 8`] = ` -{ - "sizes": "192x192", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-192x192.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 9`] = ` -{ - "sizes": "384x384", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-384x384.png", -} -`; - -exports[`AMP Home Page SEO Apple Touch Icon should match attributes 10`] = ` -{ - "sizes": "512x512", - "url": "https://static.files.bbci.co.uk/ws/simorgh-assets/public/serbian/images/icons/icon-512x512.png", -} -`; - -exports[`AMP Home Page SEO Canonical link 1`] = `"http://localhost:7080/serbian/lat"`; - -exports[`AMP Home Page SEO Dir attribute 1`] = `"ltr"`; - -exports[`AMP Home Page SEO FB app ID 1`] = `"1609039196070050"`; - -exports[`AMP Home Page SEO Heading level 1 1`] = `"BBC News, na srpskom - Glavna stranica"`; - -exports[`AMP Home Page SEO Lang attribute 1`] = `"sr-latn"`; - -exports[`AMP Home Page SEO Linked data should match text 1`] = ` -{ - "@context": "http://schema.org", - "@graph": [ - { - "@type": "CollectionPage", - "headline": "Početna stranica", - "image": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png", - "width": 1024, - }, - "inLanguage": { - "@type": "Language", - "alternateName": "sr-latn", - "name": "Serbian", - }, - "mainEntityOfPage": { - "@id": "http://localhost:7080/serbian/lat", - "@type": "WebPage", - "name": "Početna stranica", - }, - "publisher": { - "@type": "NewsMediaOrganization", - "logo": { - "@type": "ImageObject", - "height": 576, - "url": "https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png", - "width": 1024, - }, - "name": "BBC News na srpskom", - "publishingPrinciples": "https://www.bbc.com/serbian/lat/institutional-50173730", - }, - "thumbnailUrl": "https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png", - "url": "http://localhost:7080/serbian/lat", - }, - { - "@type": "ItemList", - "itemListElement": [ - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 1, - "url": "https://www.bbc.com/serbian/articles/czmk8npevn0o", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 2, - "url": "https://www.bbc.com/serbian/articles/c3x8zzpdy8ko/lat", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 3, - "url": "https://www.bbc.com/serbian/articles/cqy6nykzpwmo/lat", - }, - { - "@context": "http://schema.org", - "@type": "ListItem", - "position": 4, - "url": "https://www.bbc.com/serbian/articles/c3v223kzpzko", - }, - ], - "name": "BBC News na srpskom", - "numberOfItems": 4, - }, - ], -} -`; - -exports[`AMP Home Page SEO OG description 1`] = `"Srpska početna stranica"`; - -exports[`AMP Home Page SEO OG image 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png"`; - -exports[`AMP Home Page SEO OG image alt 1`] = `"BBC News na srpskom"`; - -exports[`AMP Home Page SEO OG locale 1`] = `"sr-latn"`; - -exports[`AMP Home Page SEO OG site name 1`] = `"BBC News na srpskom"`; - -exports[`AMP Home Page SEO OG title 1`] = `"Glavna stranica - BBC News na srpskom"`; - -exports[`AMP Home Page SEO OG type 1`] = `"website"`; - -exports[`AMP Home Page SEO OG url 1`] = `"http://localhost:7080/serbian/lat"`; - -exports[`AMP Home Page SEO Page title 1`] = `"Glavna stranica - BBC News na srpskom"`; - -exports[`AMP Home Page SEO Robots meta tag 1`] = `"noodp, noydir, max-image-preview:large"`; - -exports[`AMP Home Page SEO Twitter card 1`] = `"summary_large_image"`; - -exports[`AMP Home Page SEO Twitter creator 1`] = `"@bbcnasrpskom"`; - -exports[`AMP Home Page SEO Twitter description 1`] = `"Srpska početna stranica"`; - -exports[`AMP Home Page SEO Twitter image alt 1`] = `"BBC News na srpskom"`; - -exports[`AMP Home Page SEO Twitter image src 1`] = `"https://news.files.bbci.co.uk/ws/img/logos/og/serbian.png"`; - -exports[`AMP Home Page SEO Twitter site 1`] = `"@bbcnasrpskom"`; - -exports[`AMP Home Page SEO Twitter title 1`] = `"Glavna stranica - BBC News na srpskom"`; - -exports[`AMP Home Page Timestamp should match text and date 1`] = ` -{ - "date": "2024-07-30", - "text": "30 jul 2024", -} -`; diff --git a/src/integration/pages/homePage/serbianLat/amp.test.js b/src/integration/pages/homePage/serbianLat/amp.test.js deleted file mode 100644 index 5a1d4649679..00000000000 --- a/src/integration/pages/homePage/serbianLat/amp.test.js +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @service serbian - * @pathname /serbian/lat - */ - -import runAmpTests from '../ampTests'; -import { data as pageData } from '../../../../../data/serbian/homePage/lat.json'; - -describe('AMP', () => { - describe(pageType, () => { - runAmpTests({ service, pageData }); - }); -});