diff --git a/tests/e2e/support-care.spec.ts b/tests/e2e/support-care.spec.ts index 2424a6b8..95558706 100644 --- a/tests/e2e/support-care.spec.ts +++ b/tests/e2e/support-care.spec.ts @@ -8,15 +8,17 @@ function localePath(locale: (typeof locales)[number], path: string = '') { test.describe('Support Care Pages', () => { for (const locale of locales) { - test(`loads support care page correctly for ${locale}`, async ({ page }) => { + test(`loads support care page correctly for ${locale}`, async ({ + page, + }) => { await page.goto(localePath(locale, 'support-care')); - + // Page should load successfully await expect(page).toHaveURL(/\/support-care/); - + // Should have main content await expect(page.locator('main')).toBeVisible(); - + // Should maintain locale in URL if (locale === 'de') { await expect(page).toHaveURL(/\/de\/support-care/); @@ -24,22 +26,5 @@ test.describe('Support Care Pages', () => { await expect(page).toHaveURL(/^(?!.*\/de\/).*\/support-care/); } }); - - test(`loads support care maven page correctly for ${locale}`, async ({ page }) => { - await page.goto(localePath(locale, 'support-care-maven')); - - // Page should load successfully - await expect(page).toHaveURL(/\/support-care-maven/); - - // Should have main content - await expect(page.locator('main')).toBeVisible(); - - // Should maintain locale in URL - if (locale === 'de') { - await expect(page).toHaveURL(/\/de\/support-care-maven/); - } else { - await expect(page).toHaveURL(/^(?!.*\/de\/).*\/support-care-maven/); - } - }); } });