Skip to content

Commit 18a1d7a

Browse files
Update home team ID and use unique match header URLs in fixtures
Co-authored-by: Marjan K <15894063+marjisound@users.noreply.github.com>
1 parent c939e58 commit 18a1d7a

2 files changed

Lines changed: 14 additions & 5 deletions

File tree

dotcom-rendering/fixtures/manual/footballMatches.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const matchData = {
1717
},
1818
leg: '1',
1919
homeTeam: {
20-
id: '1',
20+
id: '44',
2121
name: 'Home Team',
2222
},
2323
awayTeam: {

dotcom-rendering/src/components/FootballMatchHeader/FootballMatchHeader.stories.tsx

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,12 @@ export const Fixture = {
4848
matchKind: 'Fixture',
4949
},
5050
edition: 'UK',
51-
getHeaderData: () => Promise.resolve(feHeaderData),
51+
getHeaderData: () =>
52+
Promise.resolve({
53+
...feHeaderData,
54+
liveURL: undefined,
55+
reportURL: undefined,
56+
}),
5257
refreshInterval: 3_000,
5358
matchHeaderURL: new URL(
5459
'https://api.nextgen.guardianapps.co.uk/football/api/match-header/2026/02/08/26247/48490.json',
@@ -58,7 +63,7 @@ export const Fixture = {
5863

5964
export const Live = {
6065
args: {
61-
leagueName: Fixture.args.leagueName,
66+
leagueName: feHeaderData.competitionName,
6267
match: {
6368
...Fixture.args.match,
6469
kind: 'Live',
@@ -87,7 +92,9 @@ export const Live = {
8792
),
8893
},
8994
edition: 'EUR',
90-
matchHeaderURL: Fixture.args.matchHeaderURL,
95+
matchHeaderURL: new URL(
96+
'https://api.nextgen.guardianapps.co.uk/football/api/match-header/2026/02/11/39/9.json',
97+
),
9198
refreshInterval: Fixture.args.refreshInterval,
9299
getHeaderData: () =>
93100
Promise.resolve({
@@ -110,7 +117,9 @@ export const Result = {
110117
matchKind: 'Result',
111118
},
112119
edition: 'AU',
113-
matchHeaderURL: Fixture.args.matchHeaderURL,
120+
matchHeaderURL: new URL(
121+
'https://api.nextgen.guardianapps.co.uk/football/api/match-header/2026/02/10/45/42.json',
122+
),
114123
refreshInterval: Fixture.args.refreshInterval,
115124
getHeaderData: () =>
116125
Promise.resolve({

0 commit comments

Comments
 (0)