diff --git a/web/e2e/landing-navigation.spec.ts b/web/e2e/landing-navigation.spec.ts index 1f96018d..91e7188c 100644 --- a/web/e2e/landing-navigation.spec.ts +++ b/web/e2e/landing-navigation.spec.ts @@ -23,4 +23,12 @@ test.describe('Landing Navigation (Real API)', () => { await page.getByRole('link', { name: 'Publish Skill' }).click() await expect(page).toHaveURL(/\/login\?returnTo=%2Fdashboard%2Fpublish$/) }) + + test('keeps the landing page within a 390px viewport', async ({ page }) => { + await page.setViewportSize({ width: 390, height: 844 }) + await page.goto('/') + + await expect(page.getByRole('heading', { name: 'Turn team expertise into Agent-ready skills' })).toBeVisible() + await expect.poll(() => page.evaluate(() => document.documentElement.scrollWidth <= window.innerWidth)).toBe(true) + }) }) diff --git a/web/src/pages/landing.tsx b/web/src/pages/landing.tsx index ca485cd7..b7141f6b 100644 --- a/web/src/pages/landing.tsx +++ b/web/src/pages/landing.tsx @@ -175,24 +175,24 @@ function EnterpriseSection() { {t('landing.experience.enterprise.deployment.description')}