World Lab's subtitle promises "Simulate, forecast, and intervene on the current world," and ScreensController already had a fully working forecastWorld() method plus a "world:forecast" case in its onAction dispatch table (calling the real worlds.forecast API) since the P6 wave — but no screen ever rendered a button with that action id, so a real user could never trigger it. The button, its handler, and its result were three separately built pieces that were never connected. Add the "Request live forecast" button to World Lab's actions, track a `forecasting` in-flight flag, and surface the live forecast result as a metric so clicking it has a visible effect instead of silently doing nothing. Covered by a new end-to-end test (worldLabForecastTests) that drives the real action id through a live api-client transport and asserts the model updates. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
31 lines
1.8 KiB
TypeScript
31 lines
1.8 KiB
TypeScript
import { analysisTests } from "./analysis.test.js";
|
|
import { analysisViewTests } from "./analysis_view.test.js";
|
|
import { appTests } from "./app.test.js";
|
|
import { collaborationTests } from "./collaboration.test.js";
|
|
import { dataPrepTests } from "./data-prep.test.js";
|
|
import { datasetTests } from "./dataset.test.js";
|
|
import { discoveryTests } from "./discovery.test.js";
|
|
import { equationsTests } from "./equations.test.js";
|
|
import { monitorTests } from "./monitor.test.js";
|
|
import { providersTests } from "./providers.test.js";
|
|
import { regimesTests } from "./regimes.test.js";
|
|
import { routesTests } from "./routes.test.js";
|
|
import { scenarioBoardTests } from "./scenario-board.test.js";
|
|
import { simulationTests } from "./simulation.test.js";
|
|
import { structureTests } from "./structure.test.js";
|
|
import { visualizeTests } from "./visualize.test.js";
|
|
import { wiredDiscoveryTests, worldLabForecastTests } from "./wired-discovery.test.js";
|
|
import { workspaceTests } from "./workspace.test.js";
|
|
|
|
const tests: readonly [string, () => Promise<void>][] = [
|
|
["analysis view models", analysisTests], ["analysis rendering", analysisViewTests], ["app lifecycle", appTests], ["collaboration", collaborationTests], ["data prep", dataPrepTests], ["dataset profiling", datasetTests], ["discovery observation", discoveryTests],
|
|
["equation comparison", equationsTests], ["monitor", monitorTests], ["provider lifecycle", providersTests], ["regime planning", regimesTests],
|
|
["routes", routesTests], ["scenario board", scenarioBoardTests], ["simulation execution", simulationTests], ["structure filtering", structureTests],
|
|
["trajectory visualization", visualizeTests], ["wired discovery", wiredDiscoveryTests], ["world lab forecast action", worldLabForecastTests], ["workspace selection", workspaceTests],
|
|
];
|
|
|
|
for (const [name, run] of tests) {
|
|
await run();
|
|
console.log(`ok - ${name}`);
|
|
}
|