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.
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { expect, test } from '@playwright/test';
|
||||
import { loginToDashboard } from './fixtures';
|
||||
|
||||
test.describe('AetherForge smoke', () => {
|
||||
test('health endpoint responds', async ({ request }) => {
|
||||
@@ -9,20 +10,11 @@ test.describe('AetherForge smoke', () => {
|
||||
});
|
||||
|
||||
test('login gate renders and accepts credentials', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await expect(page.getByRole('heading', { name: 'AetherForge' })).toBeVisible({ timeout: 15_000 });
|
||||
await page.getByLabel('Username').fill('drjones');
|
||||
await page.getByLabel('Password').fill('czapiewski');
|
||||
await page.getByRole('button', { name: /enter command deck/i }).click();
|
||||
await expect(page.getByRole('heading', { name: 'Command Deck' })).toBeVisible({ timeout: 15_000 });
|
||||
await loginToDashboard(page);
|
||||
});
|
||||
|
||||
test('forge page loads after login', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await page.getByLabel('Username').fill('drjones');
|
||||
await page.getByLabel('Password').fill('czapiewski');
|
||||
await page.getByRole('button', { name: /enter command deck/i }).click();
|
||||
await expect(page.getByRole('heading', { name: 'Command Deck' })).toBeVisible({ timeout: 15_000 });
|
||||
await loginToDashboard(page);
|
||||
await page.getByRole('link', { name: /forge/i }).click();
|
||||
await expect(page.getByRole('heading', { name: 'The Forge' })).toBeVisible({ timeout: 10_000 });
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user