Skip to content

Commit

Permalink
Merge branch 'latest' into nasaa-create-amp-experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
hotinglok authored Oct 21, 2024
2 parents 42ad63a + 76b8528 commit bf3c63e
Show file tree
Hide file tree
Showing 98 changed files with 2,810 additions and 1,332 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
10 changes: 10 additions & 0 deletions cypress/e2e/pages/homePage/urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ const urls = [
test: '/arabic',
live: '/arabic',
},
{
service: 'serbian',
local: '/serbian/lat',
test: '/serbian/lat',
},
{
service: 'serbian',
local: '/serbian/cyr',
test: '/serbian/cyr',
},
];

export default () => {
Expand Down
12 changes: 6 additions & 6 deletions cypress/support/config/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -5492,11 +5492,11 @@ module.exports = () => ({
},
test: {
paths: ['/serbian/cyr'],
enabled: true,
enabled: false,
},
local: {
paths: ['/serbian/cyr'],
enabled: true,
enabled: false,
},
},
smoke: true,
Expand Down Expand Up @@ -5662,11 +5662,11 @@ module.exports = () => ({
},
test: {
paths: ['/serbian/lat'],
enabled: true,
enabled: false,
},
local: {
paths: ['/serbian/lat'],
enabled: true,
enabled: false,
},
},
smoke: true,
Expand Down Expand Up @@ -8857,7 +8857,7 @@ module.exports = () => ({
},
local: {
paths: ['/zhongwen/simp'],
enabled: true,
enabled: false,
},
},
smoke: true,
Expand Down Expand Up @@ -9064,7 +9064,7 @@ module.exports = () => ({
},
local: {
paths: ['/zhongwen/trad'],
enabled: true,
enabled: false,
},
},
smoke: true,
Expand Down
5 changes: 4 additions & 1 deletion cypress/support/helpers/adsTests/testsForCanonicalOnly.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ import envConfig from '../../config/envs';
export default ({ service }) => {
describe(`Canonical Ads`, () => {
it('should be displayed based on whether ads toggle is enabled/disabled', () => {
const serviceName = config[service].name;
let serviceName = service;
if (Object.keys(config).includes(service)) {
serviceName = config[service].name;
}

cy.getToggles(serviceName).then(() => {
cy.fixture(`toggles/${serviceName}.json`).then(toggles => {
Expand Down
160 changes: 160 additions & 0 deletions data/serbian/homePage/cyr.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"data": {
"title": "Почетна страница",
"description": "Српска почетна страница",
"pageType": "home",
"curations": [
{
"summaries": [
{
"type": "article",
"isLive": false,
"title": "Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo",
"firstPublished": "2024-07-30T16:38:41.828Z",
"lastPublished": "2024-07-30T16:38:41.828Z",
"link": "https://www.bbc.com/serbian/articles/czmk8npevn0o",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/8e80/test/de02d740-4e90-11ef-ae89-b10ee2354b32.jpg.webp",
"description": "Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo",
"imageAlt": "Koren, grane i lišće.",
"id": "czmk8npevn0o"
},
{
"type": "article",
"isLive": false,
"title": "Obrazovanje u Srbiji: Priče onih koji su se posle velike pauze vratili studiranju",
"firstPublished": "2024-10-10T13:06:13.117Z",
"lastPublished": "2024-10-10T13:06:13.117Z",
"link": "https://www.bbc.com/serbian/articles/c3x8zzpdy8ko/lat",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/0806/test/dcd61aa0-8705-11ef-befc-6554bf4e69f9.jpg.webp",
"description": "summary text ",
"imageAlt": "alternative text",
"id": "c3x8zzpdy8ko"
},
{
"type": "article",
"isLive": false,
"title": "Članak u srpskim medijima - Audio i video",
"firstPublished": "2024-10-07T15:18:08.624Z",
"lastPublished": "2024-10-07T15:18:08.624Z",
"link": "https://www.bbc.com/serbian/articles/cqy6nykzpwmo/lat",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsprodpb/36D1/production/_127933041__63970643_bbc-news-world-service-logo-nc.png.webp",
"id": "cqy6nykzpwmo"
},
{
"type": "article",
"isLive": false,
"title": "Klimatske promene: Šta je ozonski omotač i kakva mu se budućnost smeši",
"firstPublished": "2024-09-16T16:43:14.456Z",
"lastPublished": "2024-09-16T16:43:14.456Z",
"link": "https://www.bbc.com/serbian/articles/c3v223kzpzko",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsprodpb/36D1/production/_127933041__63970643_bbc-news-world-service-logo-nc.png.webp",
"id": "c3v223kzpzko"
}
],
"activePage": 1,
"pageCount": 1,
"curationId": "urn:bbc:tipo:list:c01fef7f-0197-418e-8757-1d89293fad17",
"curationType": "tipo-curation",
"position": 0,
"title": "Serbian",
"visualProminence": "HIGH",
"visualStyle": "COLLECTION"
},
{
"curationId": "urn:bbc:onward-journeys:most:read?=site=News",
"curationType": "most-popular",
"position": 1,
"title": "Najčitanije",
"visualProminence": "NORMAL",
"visualStyle": "RANKED",
"link": "https://www.bbc.com/serbian/cyr/popular/read",
"mostRead": {
"generated": "2024-10-11T09:06:56.858Z",
"lastRecordTimeStamp": "2021-05-04T11:53:00Z",
"firstRecordTimeStamp": "2021-05-04T09:53:00Z",
"items": [
{
"id": "c893a22a-b367-e743-90ec-737606624e7a",
"rank": 1,
"title": "test, please ignore",
"href": "/serbian/cyr/23200492",
"timestamp": "2018-05-16T12:59:55.000Z"
},
{
"id": "8ec20548-be66-3545-8d55-9d3378dd4874",
"rank": 2,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 36",
"href": "/serbian/cyr/media-23169633",
"timestamp": "2017-12-04T16:32:43.000Z"
},
{
"id": "82cc4275-a7b5-6d4a-a6ff-59c592c2ba46",
"rank": 3,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 8",
"href": "/serbian/cyr/media-23169495",
"timestamp": "2017-12-04T16:25:28.000Z"
},
{
"id": "60898e52-4a3e-aa44-88f5-861644dde52d",
"rank": 4,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 34",
"href": "/serbian/cyr/media-23169631",
"timestamp": "2017-12-04T16:32:26.000Z"
},
{
"id": "76ddfd93-f5bb-9f40-8181-857965827959",
"rank": 5,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 17",
"href": "/serbian/cyr/media-23169614",
"timestamp": "2017-12-04T16:29:04.000Z"
},
{
"id": "05a64eb2-12b3-1742-b149-6cd4b050b571",
"rank": 6,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 6",
"href": "/serbian/cyr/media-23169493",
"timestamp": "2017-12-04T16:23:59.000Z"
},
{
"id": "8f52c324-d00c-f944-b299-f8f13c542b63",
"rank": 7,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 33",
"href": "/serbian/cyr/media-23169630",
"timestamp": "2017-12-04T16:32:12.000Z"
},
{
"id": "eca68bfa-610a-c04b-b184-bf37a0b6d9d1",
"rank": 8,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 2",
"href": "/serbian/cyr/media-23169489",
"timestamp": "2017-12-04T16:19:47.000Z"
},
{
"id": "151206d3-aff2-e949-976c-e9acb326ab44",
"rank": 9,
"title": "Beba panda odmara nakon prvog javnog nastupa",
"href": "/serbian/cyr/23180965",
"timestamp": "2018-01-15T15:10:46.000Z"
},
{
"id": "dc35d343-6b9d-0e41-888c-fa036f1d4a61",
"rank": 10,
"title": "Ухапшено 56 особа осумњичених за злоупотребе и корупцију 31",
"href": "/serbian/cyr/media-23169628",
"timestamp": "2017-12-04T16:31:51.000Z"
}
]
}
}
],
"metadata": {
"atiAnalytics": {
"contentId": "urn:bbc:tipo:topic:c6zr6pp47w7t",
"contentType": "index-home",
"pageIdentifier": "serbiancyr.page",
"pageTitle": "Почетна страница"
}
}
},
"contentType": "application/json; charset=utf-8"
}
Empty file removed data/serbian/homePage/index.json
Empty file.
160 changes: 160 additions & 0 deletions data/serbian/homePage/lat.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"data": {
"title": "Početna stranica",
"description": "Srpska početna stranica",
"pageType": "home",
"curations": [
{
"summaries": [
{
"type": "article",
"isLive": false,
"title": "Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo",
"firstPublished": "2024-07-30T16:38:41.828Z",
"lastPublished": "2024-07-30T16:38:41.828Z",
"link": "https://www.bbc.com/serbian/articles/czmk8npevn0o",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/8e80/test/de02d740-4e90-11ef-ae89-b10ee2354b32.jpg.webp",
"description": "Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo Prijateljstvo: Smanjuje li se broj bliskih ljudi kako starimo",
"imageAlt": "Koren, grane i lišće.",
"id": "czmk8npevn0o"
},
{
"type": "article",
"isLive": false,
"title": "Obrazovanje u Srbiji: Priče onih koji su se posle velike pauze vratili studiranju",
"firstPublished": "2024-10-10T13:06:13.117Z",
"lastPublished": "2024-10-10T13:06:13.117Z",
"link": "https://www.bbc.com/serbian/articles/c3x8zzpdy8ko/lat",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsdevpb/0806/test/dcd61aa0-8705-11ef-befc-6554bf4e69f9.jpg.webp",
"description": "summary text ",
"imageAlt": "alternative text",
"id": "c3x8zzpdy8ko"
},
{
"type": "article",
"isLive": false,
"title": "Članak u srpskim medijima - Audio i video",
"firstPublished": "2024-10-07T15:18:08.624Z",
"lastPublished": "2024-10-07T15:18:08.624Z",
"link": "https://www.bbc.com/serbian/articles/cqy6nykzpwmo/lat",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsprodpb/36D1/production/_127933041__63970643_bbc-news-world-service-logo-nc.png.webp",
"id": "cqy6nykzpwmo"
},
{
"type": "article",
"isLive": false,
"title": "Klimatske promene: Šta je ozonski omotač i kakva mu se budućnost smeši",
"firstPublished": "2024-09-16T16:43:14.456Z",
"lastPublished": "2024-09-16T16:43:14.456Z",
"link": "https://www.bbc.com/serbian/articles/c3v223kzpzko",
"imageUrl": "https://ichef.bbci.co.uk/ace/ws/{width}/cpsprodpb/36D1/production/_127933041__63970643_bbc-news-world-service-logo-nc.png.webp",
"id": "c3v223kzpzko"
}
],
"activePage": 1,
"pageCount": 1,
"curationId": "urn:bbc:tipo:list:c01fef7f-0197-418e-8757-1d89293fad17",
"curationType": "tipo-curation",
"position": 0,
"title": "Serbian",
"visualProminence": "HIGH",
"visualStyle": "COLLECTION"
},
{
"curationId": "urn:bbc:onward-journeys:most:read?=site=News",
"curationType": "most-popular",
"position": 1,
"title": "Najčitanije",
"visualProminence": "NORMAL",
"visualStyle": "RANKED",
"link": "https://www.bbc.com/serbian/lat/popular/read",
"mostRead": {
"generated": "2024-10-11T09:06:57.006Z",
"lastRecordTimeStamp": "2021-05-04T11:53:00Z",
"firstRecordTimeStamp": "2021-05-04T09:53:00Z",
"items": [
{
"id": "bed59bb0-13e8-d441-9ac2-70d58ab92379",
"rank": 1,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 26",
"href": "/serbian/lat/media-23169623",
"timestamp": "2017-12-04T16:30:53.000Z"
},
{
"id": "c893a22a-b367-e743-90ec-737606624e7b",
"rank": 2,
"title": "test, please ignore",
"href": "/serbian/lat/23200492",
"timestamp": "2018-05-16T12:59:55.000Z"
},
{
"id": "05a64eb2-12b3-1742-b149-6cd4b050b572",
"rank": 3,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 6",
"href": "/serbian/lat/media-23169493",
"timestamp": "2017-12-04T16:23:59.000Z"
},
{
"id": "1849c8f5-dac1-294b-a0b5-823b119b1e6e",
"rank": 4,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 29",
"href": "/serbian/lat/media-23169626",
"timestamp": "2017-12-04T16:31:24.000Z"
},
{
"id": "5bae7009-f4cc-884b-b23b-5e9f99c9990e",
"rank": 5,
"title": "Otvorene ZOI 2014",
"href": "/serbian/lat/23181035",
"timestamp": "2018-01-15T15:19:05.000Z"
},
{
"id": "9fdff7d7-a6c9-4840-b79f-d111bbb7a4e1",
"rank": 6,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 27",
"href": "/serbian/lat/media-23169624",
"timestamp": "2017-12-04T16:31:03.000Z"
},
{
"id": "82cc4275-a7b5-6d4a-a6ff-59c592c2ba47",
"rank": 7,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 8",
"href": "/serbian/lat/media-23169495",
"timestamp": "2017-12-04T16:25:28.000Z"
},
{
"id": "42765cca-a2ef-0742-8f78-f24c59d78caf",
"rank": 8,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 7",
"href": "/serbian/lat/media-23169494",
"timestamp": "2017-12-04T16:24:09.000Z"
},
{
"id": "7dcb9041-b854-1c49-beae-9cbfc39f7ad8",
"rank": 9,
"title": "Uhapšeno 56 osoba osumnjičenih za zloupotrebe i korupciju 11",
"href": "/serbian/lat/media-23169608",
"timestamp": "2018-03-06T15:20:58.000Z"
},
{
"id": "151206d3-aff2-e949-976c-e9acb326ab45",
"rank": 10,
"title": "Beba panda odmara nakon prvog javnog nastupa",
"href": "/serbian/lat/23180965",
"timestamp": "2018-01-15T15:10:46.000Z"
}
]
}
}
],
"metadata": {
"atiAnalytics": {
"contentId": "urn:bbc:tipo:topic:c6zr6pp47w7t",
"contentType": "index-home",
"pageIdentifier": "serbianlat.page",
"pageTitle": "Početna stranica"
}
}
},
"contentType": "application/json; charset=utf-8"
}
Empty file removed data/zhongwen/homePage/index.json
Empty file.
Loading

0 comments on commit bf3c63e

Please sign in to comment.