feat(cms): hosting plans page with lifecycle gate and net + VAT prices (MITHOME-130)
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
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>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
0c5888761b
commit
1e0742a548
@@ -28,7 +28,8 @@ test('robots.txt allows crawling and points to the sitemap', async ({ request, b
|
||||
|
||||
test('every sitemap URL is final, indexable and correctly annotated', async ({ request, baseURL }) => {
|
||||
const urls = locs(await text(request, '/sitemap.xml'))
|
||||
expect(urls).toHaveLength(12)
|
||||
// MITHOME-130: 12 core URLs, +2 once a hosting plan is active.
|
||||
expect(urls.length).toBeGreaterThanOrEqual(12)
|
||||
|
||||
for (const url of urls) {
|
||||
expect(url.startsWith(`${baseURL}/`), `${url} is on ${baseURL}`).toBe(true)
|
||||
|
||||
@@ -100,6 +100,19 @@ test('SMOKE-09: hreflang alternates and staging noindex', async ({ page, request
|
||||
expect(robots).not.toContain('Sitemap:')
|
||||
})
|
||||
|
||||
// MITHOME-130: staging shows the draft hosting plans for review (production
|
||||
// shows only active ones), with the menu item and both languages.
|
||||
test('SMOKE-10: hosting plans page and menu item', async ({ page }) => {
|
||||
await page.goto('/hu')
|
||||
await page.getByRole('navigation').getByRole('link', { name: 'Tárhelycsomagok' }).first().click()
|
||||
await expect(page).toHaveURL(/\/hu\/tarhely-csomagok$/)
|
||||
await expect(page.getByRole('heading', { level: 2, name: 'mIT Start' })).toBeVisible()
|
||||
await expect(page.getByRole('heading', { level: 2, name: 'mIT Mid' })).toBeVisible()
|
||||
await expect(page.getByText(/\+ ÁFA \/ év/).first()).toBeVisible()
|
||||
const english = page.getByRole('group', { name: 'Nyelv kiválasztása' }).first().getByRole('link', { name: 'English' })
|
||||
await expect(english).toHaveAttribute('href', '/en/hosting-plans')
|
||||
})
|
||||
|
||||
test('SMOKE-05: empty contact form is blocked client-side without API submission', async ({ page }) => {
|
||||
let contactPostCount = 0
|
||||
page.on('request', request => {
|
||||
|
||||
Reference in New Issue
Block a user