Skip to content

Commit

Permalink
Merge pull request #12214 from bbc/WSTEAMA-1468-move-uzbek-to-list-of…
Browse files Browse the repository at this point in the history
…-migrated-services

WSTEAMA1468 move Uzbek to list of migrated services
  • Loading branch information
holchris authored Dec 10, 2024
2 parents 204e4cc + 6eecd5c commit 535eca5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 3 deletions.
12 changes: 12 additions & 0 deletions cypress/e2e/pages/homePage/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,18 @@ const urls = [
test: '/serbian/cyr',
live: '/serbian/cyr',
},
{
service: 'uzbek',
local: '/uzbek/lat',
test: '/uzbek/lat',
live: '/uzbek/lat',
},
{
service: 'uzbek',
local: '/uzbek/cyr',
test: '/uzbek/cyr',
live: '/uzbek/cyr',
},
];

export default () => {
Expand Down
2 changes: 1 addition & 1 deletion lighthouse/lighthouserc.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const AUDIT_URLS = {
},

TIPO_HOME_PAGE: {
live: ['https://www.bbc.com/kyrgyz', 'https://www.bbc.com/serbian/lat'],
live: ['https://www.bbc.com/kyrgyz', 'https://www.bbc.com/serbian/lat', 'https://www.bbc.com/uzbek/lat'],
test: [
'https://www.test.bbc.com/kyrgyz?renderer_env=live',
'https://www.test.bbc.com/serbian/lat?renderer_env=live',
Expand Down
1 change: 1 addition & 0 deletions src/app/routes/utils/regex/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,7 @@ describe('frontPage -> homePage migration', () => {
'turkce',
'ukrainian',
'urdu',
'uzbek',
'vietnamese',
'yoruba',
'zhongwen',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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|sport|ukchina|uzbek|ws):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|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|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 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 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)?"`;

Expand Down
1 change: 1 addition & 0 deletions src/app/routes/utils/regex/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ const homePageServices = [
'turkce',
'ukrainian',
'urdu',
'uzbek',
'vietnamese',
'yoruba',
'zhongwen',
Expand Down

0 comments on commit 535eca5

Please sign in to comment.