TenantAtlas/apps/website/tests/smoke/interaction.spec.ts
ahmido eeb5c98450 feat: rebuild website on ScrewFast foundation (#393)
## Summary
- rebuild `apps/website` on the pinned ScrewFast Astro foundation
- replace the legacy page/content/component structure with the new section and UI architecture
- add Starlight-based docs and the new public route set for platform, pricing, trust, legal, and guides
- refresh website tooling, dependencies, and Playwright smoke coverage for the new site shell

## Scope
- touches `apps/website` and the matching spec artifacts for feature 402
- does not modify `apps/platform`

## Testing
- not run in this step

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #393
2026-05-20 21:36:29 +00:00

35 lines
1.1 KiB
TypeScript

import { expect, test } from '@playwright/test';
import { expectNoHorizontalOverflow } from './smoke-helpers';
test('mobile navigation opens with vendored foundation behavior', async ({
page,
isMobile,
}) => {
test.skip(!isMobile, 'mobile navigation is covered by the mobile project');
await page.goto('/');
await page.getByLabel('Toggle navigation').click();
const mobilePanel = page.locator('#navbar-collapse-with-animation');
await expect(
mobilePanel.getByRole('link', { name: 'Platform', exact: true }),
).toBeVisible();
await expect(
mobilePanel.getByRole('link', { name: 'Request walkthrough' }),
).toBeVisible();
await expectNoHorizontalOverflow(page);
});
test('theme toggle keeps page content visible', async ({ page }) => {
await page.goto('/');
await page.locator('button[aria-label="Dark Theme Toggle"]:visible').click();
await expect(page.getByRole('heading', { name: /Evidence-first governance/ }))
.toBeVisible();
await page.locator('button[aria-label="Light Theme Toggle"]:visible').click();
await expect(page.getByRole('heading', { name: /Evidence-first governance/ }))
.toBeVisible();
});