Files
AetherForge/server/web/e2e/smoke.spec.ts
AetherForge ea6f54ad03 Expand test coverage across server, agent, and web; fix bugs found during audit.
Adds hundreds of unit/integration/e2e tests, fixes WS bcrypt auth, config merge, fleet analytics, agent schedule/log tail, and documents stale PROBLEMS items. Updates PROBLEMS.md, README, and test scripts; ignores local spread-kits and coverage dirs.
2026-05-31 01:13:58 -07:00

22 lines
750 B
TypeScript

import { expect, test } from '@playwright/test';
import { loginToDashboard } from './fixtures';
test.describe('AetherForge smoke', () => {
test('health endpoint responds', async ({ request }) => {
const res = await request.get('/api/v1/health');
expect(res.ok()).toBeTruthy();
const body = await res.json();
expect(body.status).toBe('ok');
});
test('login gate renders and accepts credentials', async ({ page }) => {
await loginToDashboard(page);
});
test('forge page loads after login', async ({ page }) => {
await loginToDashboard(page);
await page.getByRole('link', { name: /forge/i }).click();
await expect(page.getByRole('heading', { name: 'The Forge' })).toBeVisible({ timeout: 10_000 });
});
});