TenantAtlas/apps/website/tests/smoke/public-routes.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

43 lines
1.2 KiB
TypeScript

import { expect, test } from '@playwright/test';
import {
expectNoForbiddenPublicText,
expectNoHorizontalOverflow,
redirectRoutes,
renderedRoutes,
} from './smoke-helpers';
for (const route of renderedRoutes) {
test(`renders intentional route ${route}`, async ({ page }) => {
await page.goto(route);
await expect(page.locator('body')).toContainText('Tenantial');
await expectNoForbiddenPublicText(page);
await expectNoHorizontalOverflow(page);
});
}
for (const route of redirectRoutes) {
test(`redirects ${route} intentionally`, async ({ page }) => {
await page.goto(route);
await expect(page).toHaveURL(/\/platform\/?$/);
await expect(page.getByRole('heading', { name: /Platform review model/ }))
.toBeVisible();
});
}
test('robots and sitemap are available', async ({ page }) => {
await page.goto('/robots.txt');
await expect(page.locator('body')).toContainText('Sitemap:');
await page.goto('/sitemap-index.xml');
await expect(page.locator('body')).toContainText('sitemap-0.xml');
await page.goto('/sitemap-0.xml');
const sitemap = await page.locator('body').innerText();
for (const route of redirectRoutes) {
expect(sitemap).not.toContain(`https://tenantial.com${route}/`);
}
});