Adaptive Loop — a deterministic microfluidic strategy puzzle. Pure serializable nextState(state,action) owns every committed turn; previews call the same function on a clone. 5 handcrafted scenarios, bounded solver with verified win/lose routes + shared-ownership counterfactual, exact localStorage persistence/replay, accessible SVG interface, Vitest truth/solver/persistence tests, and Playwright black-box browser proof. Scenarios 3 and 4 retuned per SPEC §9 (provably unwinnable as originally specified); proofs and exact changes in docs/scenario-tuning.md. Invariants preserved. See CONTEXT-MANIFEST.md for the disclosure boundary and residual risks. Aggregate verified: tsc --noEmit, vitest (59), vite build, playwright (10).
29 lines
793 B
TypeScript
29 lines
793 B
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
|
|
// Black-box browser proof against the production build via public controls only.
|
|
export default defineConfig({
|
|
testDir: "./e2e",
|
|
timeout: 60_000,
|
|
expect: { timeout: 10_000 },
|
|
fullyParallel: false,
|
|
retries: 0,
|
|
workers: 1,
|
|
reporter: [["list"], ["html", { open: "never", outputFolder: "playwright-report" }]],
|
|
use: {
|
|
baseURL: "http://localhost:4173",
|
|
headless: true,
|
|
actionTimeout: 10_000,
|
|
viewport: { width: 1280, height: 900 },
|
|
trace: "retain-on-failure",
|
|
},
|
|
projects: [
|
|
{ name: "chromium", use: { ...devices["Desktop Chrome"] } },
|
|
],
|
|
webServer: {
|
|
command: "npm run preview",
|
|
url: "http://localhost:4173",
|
|
reuseExistingServer: !process.env.CI,
|
|
timeout: 60_000,
|
|
},
|
|
});
|