Add an English translation of the corralito training-courses page

It was deliberately left Italian-only when /en support was first added;
now translated and following the same thin-page + shared-view pattern
as every other route, with the nav link and language switch no longer
special-casing it.
This commit is contained in:
2026-09-11 15:39:31 +02:00
parent 1247a2ca07
commit ac536bd152
8 changed files with 173 additions and 148 deletions
+7 -4
View File
@@ -41,11 +41,14 @@ test('language switch falls back to the English blog index for an untranslated a
await expect(languageSwitch).toHaveAttribute('href', '/en/blog')
})
test('language switch on the Italian-only corralito page falls back to the English home page', async ({
page,
}) => {
test('the corralito page has an English translation', async ({ page }) => {
await page.goto('/come-difendersi-dal-corralito')
const languageSwitch = page.getByRole('link', { name: 'English' })
await expect(languageSwitch).toHaveAttribute('href', '/en')
await expect(languageSwitch).toHaveAttribute('href', '/en/come-difendersi-dal-corralito')
await page.goto('/en/come-difendersi-dal-corralito')
await expect(
page.getByRole('heading', { level: 1, name: 'How to protect yourself from the corralito' })
).toBeVisible()
})