test(e2e): smoke-check hero CTA target in both locales (MITHOME-123)
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
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
678fa3ba7e
commit
2165551711
@@ -51,6 +51,18 @@ test('SMOKE-04: service content and contact CTA are visible', async ({ page }) =
|
||||
await expect(page.getByRole('link', { name: /kérjen ajánlatot/i })).toHaveAttribute('href', '/hu/kapcsolat')
|
||||
})
|
||||
|
||||
// MITHOME-123 regression: SMOKE-02 only checked the hero CTA was visible,
|
||||
// so its stale "/kapcsolat" target (404) went unnoticed.
|
||||
for (const [locale, contactPath] of [['hu', '/hu/kapcsolat'], ['en', '/en/contact']] as const) {
|
||||
test(`SMOKE-06-${locale}: hero CTA opens the ${locale} contact page`, async ({ page }) => {
|
||||
await page.goto(`/${locale}`)
|
||||
const cta = page.locator('section').first().locator('a.btn-primary').first()
|
||||
await expect(cta).toHaveAttribute('href', contactPath)
|
||||
const response = await page.request.get(contactPath)
|
||||
expect(response.status()).toBe(200)
|
||||
})
|
||||
}
|
||||
|
||||
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