diff --git a/src/i18n/en.ts b/src/i18n/en.ts index c6e34d7..26d39a6 100644 --- a/src/i18n/en.ts +++ b/src/i18n/en.ts @@ -40,7 +40,6 @@ export const en: Copy = { stats: [ { label: 'Based in', value: 'Vienna, Austria' }, { label: 'Working', value: 'Remote or hybrid', tone: 'now' }, - { label: 'Background', value: 'Web design & UI', tone: 'root' }, { label: 'Languages', value: 'IT · EN · DE in progress' }, ], intro: diff --git a/src/i18n/it.ts b/src/i18n/it.ts index 30394c7..ba7f3db 100644 --- a/src/i18n/it.ts +++ b/src/i18n/it.ts @@ -41,7 +41,6 @@ export const it: Copy = { stats: [ { label: 'Dove vivo', value: 'Vienna, Austria' }, { label: 'Come lavoro', value: 'Remoto o ibrido', tone: 'now' }, - { label: 'Percorso', value: 'Web design e UI', tone: 'root' }, { label: 'Lingue', value: 'IT · EN · DE in corso' }, ], intro: diff --git a/tests/e2e/homepage.spec.ts b/tests/e2e/homepage.spec.ts index 62be37f..c54b744 100644 --- a/tests/e2e/homepage.spec.ts +++ b/tests/e2e/homepage.spec.ts @@ -79,8 +79,10 @@ for (const locale of ['en', 'it'] as const) { expect(await img.evaluate((el: HTMLImageElement) => el.naturalWidth)).toBeGreaterThan(0); }); - test('lists the four facts', async ({ page }) => { + test('lists three practical facts without a design-background highlight', async ({ page }) => { await page.goto(home); + await expect(page.locator('.hero .fact')).toHaveCount(3); + await expect(page.locator('.hero .facts .tone-root')).toHaveCount(0); for (const stat of copy.hero.stats) { await expect(page.locator('.hero .facts').getByText(stat.value)).toBeVisible(); } @@ -259,9 +261,8 @@ for (const locale of ['en', 'it'] as const) { await expect(page.locator('.work .years.live')).toHaveCount(1); await expect(page.locator('.work .job').first().locator('.years.live')).toBeVisible(); - // Lilac: the art foundation. The school, the block about drawing, the - // job where the drawing was the job. - await expect(page.locator('.hero .fact-v.tone-root')).toHaveCount(1); + // Lilac: design background remains in the detailed story, not the hero. + await expect(page.locator('.hero .fact-v.tone-root')).toHaveCount(0); await expect(page.locator('.approach .block-title.tone-root')).toHaveCount(1); await expect(page.locator('.work .chip.root')).toHaveCount(1); diff --git a/tests/unit/i18n.test.ts b/tests/unit/i18n.test.ts index fce52db..e26bfec 100644 --- a/tests/unit/i18n.test.ts +++ b/tests/unit/i18n.test.ts @@ -189,7 +189,8 @@ describe('the colour system', () => { for (const locale of LOCALES) { const copy = getCopy(locale); const facts = copy.hero.stats.filter((s) => s.tone); - expect(facts.map((s) => s.tone).sort()).toEqual(['now', 'root']); + expect(copy.hero.stats).toHaveLength(3); + expect(facts.map((s) => s.tone)).toEqual(['now']); const toned = copy.approach.filter((b) => b.tone); expect(toned.map((b) => b.tone)).toEqual(['root']);