CI Pipeline with Test Management / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🧪 Run Tests & Generate Reports (push) Canceled after 0s
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Canceled after 0s
CI Pipeline with Test Management / 🏗️ Build Docker Image (push) Canceled after 0s
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Canceled after 0s
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Canceled after 0s
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Canceled after 0s
- Products collection (interim mirror of the PLATFM-14 catalogue contract): lifecycle status, product type, required whole-forint net price, yearly billing, service definition, per-product English gate - HostingPlans global: page copy, comparison labels, VAT rate (27%) - Gate: production shows only active plans, staging all but retired; with no showable plan the page is 404 and left out of the menu and the sitemap - /hu/tarhely-csomagok <-> /en/hosting-plans via PAGE_SLUGS (hreflang, language switcher, CTA page picker) - Seed migration 20260929_hosting_plans: mIT Start (14 900 Ft/yr, 5 mailboxes) and mIT Mid (23 900 Ft/yr) as drafts, English AI draft; idempotent - Production SEO suite expects at least 12 sitemap URLs; new SMOKE-10 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
37 lines
1.4 KiB
TypeScript
37 lines
1.4 KiB
TypeScript
import { languageLinks, parseLocalePath } from './i18n'
|
|
|
|
describe('parseLocalePath (MITHOME-115)', () => {
|
|
it.each([
|
|
['/hu/rolunk', { locale: 'hu', slug: 'rolunk' }],
|
|
['/en', { locale: 'en', slug: undefined }],
|
|
['/en/services/', { locale: 'en', slug: 'services' }],
|
|
['/', { locale: 'hu' }],
|
|
['/admin', { locale: 'hu' }],
|
|
])('should parse %s', (path, expected) => {
|
|
expect(parseLocalePath(path)).toEqual(expected)
|
|
})
|
|
})
|
|
|
|
describe('languageLinks (MITHOME-115)', () => {
|
|
it('should keep the current page with its translated slug', () => {
|
|
expect(languageLinks('/hu/szolgaltatasok')).toEqual([
|
|
{ locale: 'hu', href: '/hu/szolgaltatasok', isActive: true },
|
|
{ locale: 'en', href: '/en/services', isActive: false },
|
|
])
|
|
expect(languageLinks('/en/privacy-policy').map((l) => l.href)).toEqual(['/hu/adatvedelem', '/en/privacy-policy'])
|
|
// MITHOME-130
|
|
expect(languageLinks('/hu/tarhely-csomagok').map((l) => l.href)).toEqual(['/hu/tarhely-csomagok', '/en/hosting-plans'])
|
|
})
|
|
|
|
it('should link the home pages from a home page', () => {
|
|
expect(languageLinks('/en').map((l) => [l.href, l.isActive])).toEqual([
|
|
['/hu', false],
|
|
['/en', true],
|
|
])
|
|
})
|
|
|
|
it('should fall back to the other language home for an unknown page', () => {
|
|
expect(languageLinks('/hu/nincs-ilyen').map((l) => l.href)).toEqual(['/hu', '/en'])
|
|
})
|
|
})
|