37 lines
1.6 KiB
TypeScript
37 lines
1.6 KiB
TypeScript
import { expect, test } from '@playwright/test';
|
|
|
|
import {
|
|
expectCtaHierarchy,
|
|
expectNavigationVsCtaDifferentiation,
|
|
expectPageFamily,
|
|
expectPrimaryNavigation,
|
|
expectShell,
|
|
visitPage,
|
|
} from './smoke-helpers';
|
|
|
|
test('representative pages route CTA, badge, surface, and input semantics through shared primitives', async ({
|
|
page,
|
|
}) => {
|
|
await visitPage(page, '/');
|
|
await expectShell(page, /TenantAtlas/);
|
|
await expectPageFamily(page, 'landing');
|
|
await expectPrimaryNavigation(page);
|
|
await expectNavigationVsCtaDifferentiation(page);
|
|
await expectCtaHierarchy(page, 'See the product model', 'Review the trust posture');
|
|
await expect(page.locator('[data-interaction="button"]').filter({ hasText: 'See the product model' }).first()).toBeVisible();
|
|
await expect(page.locator('[data-badge-tone]').first()).toBeVisible();
|
|
|
|
await visitPage(page, '/security-trust');
|
|
await expectShell(page, /trust posture|trust-first/i);
|
|
await expect(page.locator('[data-surface="accent"]').first()).toBeVisible();
|
|
await expect(page.locator('[data-badge-tone]').first()).toBeVisible();
|
|
|
|
await visitPage(page, '/contact');
|
|
await expectShell(page, 'Start a qualified working session instead of a generic demo request.');
|
|
await expect(page.locator('[data-interaction="input"]').first()).toBeVisible();
|
|
await expect(page.locator('[data-interaction="textarea"]').first()).toBeVisible();
|
|
await expect(
|
|
page.locator('[data-button-variant="secondary"]').filter({ hasText: 'Privacy' }).first(),
|
|
).toBeVisible();
|
|
});
|