feat: ship production deploy, Playwright e2e, and agent implementer
Add Docker atomic deploy tooling, CI, Playwright smoke/visual suite, shared industrial theme, physics invariants, quality-mode wiring, and a worktree-isolated agent implementer MVP with hard safety limits. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
20
e2e/visual.spec.ts
Normal file
20
e2e/visual.spec.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { test, expect } from '@playwright/test';
|
||||
|
||||
test.describe('visual regression', () => {
|
||||
test('home idle HUD panel', async ({ page }) => {
|
||||
await page.goto('/');
|
||||
await expect(page.locator('canvas')).toBeVisible({ timeout: 60_000 });
|
||||
|
||||
const hud = page.getByTestId('demo-hud');
|
||||
await expect(hud).toBeVisible();
|
||||
// Wait for idle classification proof row / stable HUD text
|
||||
await expect(page.getByTestId('demo-command')).toHaveText('IDLE');
|
||||
await expect(page.getByTestId('demo-case-label')).toHaveText('1/10');
|
||||
|
||||
// Snapshot HUD only — avoids flaky WebGL canvas pixels
|
||||
await expect(hud).toHaveScreenshot('home-idle-hud.png', {
|
||||
threshold: 0.3,
|
||||
maxDiffPixelRatio: 0.05,
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user