Some checks failed
Main Confidence / confidence (push) Failing after 42s
## Summary - establish the initial Astro website foundation for `apps/website` with explicit TypeScript, Tailwind CSS v4, and reusable layout/content primitives - ship the v0 public route set for home, product, solutions, security & trust, integrations, contact, legal, privacy, and terms - add SEO/discovery basics, Playwright browser smoke coverage, and the full Spec 213 planning bundle under `specs/213-website-foundation-v0` - extend ignore rules for website test artifacts and refresh Copilot agent context for the new website stack ## Validation - `corepack pnpm build:website` - `cd apps/website && corepack pnpm exec playwright test` ## Notes - branch: `213-website-foundation-v0` - commit: `020d416d0d8af4d16a981ff4f4f6d90153b9c603` Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de> Reviewed-on: #249
58 lines
2.5 KiB
TypeScript
58 lines
2.5 KiB
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
import {
|
|
expectFooterLinks,
|
|
expectPrimaryNavigation,
|
|
expectShell,
|
|
openMobileNavigation,
|
|
visitPage,
|
|
} from './smoke-helpers';
|
|
|
|
const coreRoutes = ['/', '/product', '/solutions', '/security-trust', '/integrations', '/contact'] as const;
|
|
|
|
test('contact page qualifies the conversation and keeps legal links reachable', async ({ page }) => {
|
|
await visitPage(page, '/contact');
|
|
await expectShell(page, 'Start a qualified working session instead of a generic demo request.');
|
|
await expectPrimaryNavigation(page);
|
|
await expectFooterLinks(page);
|
|
await expect(page.getByRole('main').getByRole('link', { name: 'Email the TenantAtlas team' }).first()).toBeVisible();
|
|
await expect(page.getByRole('main').getByRole('link', { name: 'Privacy' }).first()).toBeVisible();
|
|
await expect(page.getByRole('main').getByRole('link', { name: 'Terms' }).first()).toBeVisible();
|
|
});
|
|
|
|
test('legal, privacy, and terms routes are published and linked', async ({ page }) => {
|
|
await visitPage(page, '/legal');
|
|
await expectShell(page, 'Legal access should stay one click away from the contact path.');
|
|
await expect(page.getByRole('main').getByRole('link', { name: 'Privacy' }).first()).toBeVisible();
|
|
await expect(page.getByRole('main').getByRole('link', { name: 'Terms' }).first()).toBeVisible();
|
|
|
|
await visitPage(page, '/privacy');
|
|
await expectShell(page, 'Public-site privacy overview for TenantAtlas inquiries.');
|
|
|
|
await visitPage(page, '/terms');
|
|
await expectShell(page, 'Website terms for the public TenantAtlas surface.');
|
|
});
|
|
|
|
test('core pages keep contact and legal paths within reach', async ({ page }) => {
|
|
for (const path of coreRoutes) {
|
|
await visitPage(page, path);
|
|
await expectFooterLinks(page);
|
|
|
|
if (path !== '/contact') {
|
|
await expect(page.locator('main a[href="/contact"]').first()).toBeVisible();
|
|
}
|
|
}
|
|
});
|
|
|
|
test.describe('mobile navigation', () => {
|
|
test.use({ viewport: { width: 390, height: 844 } });
|
|
|
|
test('mobile menu exposes the published contact and legal paths', async ({ page }) => {
|
|
await visitPage(page, '/');
|
|
await openMobileNavigation(page);
|
|
await expect(page.getByRole('banner').getByRole('link', { name: /Contact/ }).first()).toBeVisible();
|
|
await expect(page.getByRole('contentinfo').getByRole('link', { name: 'Privacy' })).toBeVisible();
|
|
await expect(page.getByRole('contentinfo').getByRole('link', { name: 'Terms' })).toBeVisible();
|
|
});
|
|
});
|