diff --git a/cypress/e2e/pages/homePage/urls.js b/cypress/e2e/pages/homePage/urls.js index 14866c41549..670d3826652 100644 --- a/cypress/e2e/pages/homePage/urls.js +++ b/cypress/e2e/pages/homePage/urls.js @@ -15,11 +15,13 @@ const urls = [ service: 'serbian', local: '/serbian/lat', test: '/serbian/lat', + live: '/serbian/lat', }, { service: 'serbian', local: '/serbian/cyr', test: '/serbian/cyr', + live: '/serbian/cyr', }, ]; diff --git a/cypress/support/config/settings.js b/cypress/support/config/settings.js index 606d5f307ce..7cf86209b45 100644 --- a/cypress/support/config/settings.js +++ b/cypress/support/config/settings.js @@ -5485,21 +5485,8 @@ module.exports = () => ({ smoke: true, }, frontPage: { - environments: { - live: { - paths: ['/serbian/cyr'], - enabled: true, - }, - test: { - paths: ['/serbian/cyr'], - enabled: false, - }, - local: { - paths: ['/serbian/cyr'], - enabled: false, - }, - }, - smoke: true, + environments: undefined, + smoke: false, }, liveRadio: { environments: undefined, smoke: false }, onDemandAudio: { environments: undefined, smoke: false }, @@ -5655,20 +5642,7 @@ module.exports = () => ({ smoke: true, }, frontPage: { - environments: { - live: { - paths: ['/serbian/lat'], - enabled: true, - }, - test: { - paths: ['/serbian/lat'], - enabled: false, - }, - local: { - paths: ['/serbian/lat'], - enabled: false, - }, - }, + environments: undefined, smoke: true, }, liveRadio: { environments: undefined, smoke: false }, @@ -8846,21 +8820,8 @@ module.exports = () => ({ smoke: true, }, frontPage: { - environments: { - live: { - paths: ['/zhongwen/simp'], - enabled: false, - }, - test: { - paths: ['/zhongwen/simp'], - enabled: false, - }, - local: { - paths: ['/zhongwen/simp'], - enabled: false, - }, - }, - smoke: true, + environments: undefined, + smoke: false, }, liveRadio: { environments: undefined, smoke: false }, onDemandAudio: { @@ -9053,21 +9014,8 @@ module.exports = () => ({ smoke: true, }, frontPage: { - environments: { - live: { - paths: ['/zhongwen/trad'], - enabled: false, - }, - test: { - paths: ['/zhongwen/trad'], - enabled: false, - }, - local: { - paths: ['/zhongwen/trad'], - enabled: false, - }, - }, - smoke: true, + environments: undefined, + smoke: false, }, liveRadio: { environments: undefined, smoke: false }, onDemandAudio: { diff --git a/lighthouse/lighthouserc.js b/lighthouse/lighthouserc.js index 4dbb904c7a8..4c0e309de68 100644 --- a/lighthouse/lighthouserc.js +++ b/lighthouse/lighthouserc.js @@ -1,8 +1,4 @@ const AUDIT_URLS = { - FRONT_PAGE: { - live: ['https://www.bbc.com/serbian/cyr'], - test: [], - }, FIX: { live: ['https://www.bbc.com/persian/science-52004647'], test: [ @@ -57,7 +53,7 @@ const AUDIT_URLS = { }, TIPO_HOME_PAGE: { - live: ['https://www.bbc.com/kyrgyz'], + live: ['https://www.bbc.com/kyrgyz', 'https://www.bbc.com/serbian/lat'], test: [ 'https://www.test.bbc.com/kyrgyz?renderer_env=live', 'https://www.test.bbc.com/serbian/lat?renderer_env=live', diff --git a/src/app/routes/utils/regex/index.test.js b/src/app/routes/utils/regex/index.test.js index 10ffc3c8c5f..853129faa2b 100644 --- a/src/app/routes/utils/regex/index.test.js +++ b/src/app/routes/utils/regex/index.test.js @@ -531,6 +531,7 @@ describe('frontPage -> homePage migration', () => { 'portuguese', 'punjabi', 'russian', + 'serbian', 'sinhala', 'somali', 'swahili', @@ -543,6 +544,7 @@ describe('frontPage -> homePage migration', () => { 'urdu', 'vietnamese', 'yoruba', + 'zhongwen', ]; const migratedWorldServiceRoutes = migratedServices.map(serviceToRoute); 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 14eadcae0f4..9f4285aefad 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 @@ -26,11 +26,11 @@ exports[`regex utils snapshots should create expected regex from getErrorPageReg exports[`regex utils snapshots should create expected regex from getFrontPageRegex when isLive = false 1`] = `"/:service():variant(/simp|/trad|/cyr|/lat)?:amp(.amp)?:lite(.lite)?"`; -exports[`regex utils snapshots should create expected regex from getFrontPageRegex when isLive = true 1`] = `"/:service(archive|cymrufyw|naidheachdan|news|newsround|scotland|serbian|sport|ukchina|uzbek|ws|zhongwen):variant(/simp|/trad|/cyr|/lat)?:amp(.amp)?:lite(.lite)?"`; +exports[`regex utils snapshots should create expected regex from getFrontPageRegex when isLive = true 1`] = `"/:service(archive|cymrufyw|naidheachdan|news|newsround|scotland|sport|ukchina|uzbek|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 = 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|sinhala|somali|swahili|tamil|telugu|thai|tigrinya|turkce|ukrainian|urdu|vietnamese|yoruba):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|vietnamese|yoruba|zhongwen):variant(/simp|/trad|/cyr|/lat)?:amp(.amp)?: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 0c6077452df..a8d3880c134 100644 --- a/src/app/routes/utils/regex/utils/index.js +++ b/src/app/routes/utils/regex/utils/index.js @@ -60,6 +60,7 @@ const homePageServices = [ 'portuguese', 'punjabi', 'russian', + 'serbian', 'sinhala', 'somali', 'swahili', @@ -72,6 +73,7 @@ const homePageServices = [ 'urdu', 'vietnamese', 'yoruba', + 'zhongwen', ]; export const getFrontPageRegex = services => {