Outliner: react-accessible-treeview's controlled expandedIds sync expands a node together with its parent, then the next pass treats that extra parent id as removed from the controlled set and collapses the whole branch. Reproduced as a collapsed tree after ch11 -> ch12 (scene rows complete in React, one collapsed row in the DOM). Keep OUTLINER_ROOT_ID in the controlled set so both passes agree, and drop the rows-digest memo that regressed the normal path. Also arm a bounded post-open OUTLINER_REFRESH loop so the tree settles on rows of the newly opened Main instead of the previous one. Tests: web/playwright.deployed.config.ts + web/tests/deployed walk the 31 manual chapters and the 31 capability rows headed against a deployed origin, and tools/web/run-deployed-functional-tests.mjs preflights, runs and reports. --local serves the production bundle from web/dist on loopback with the same COOP/COEP/CORP/CSP headers, so a case costs compile time instead of a 300 MB download: full local suite 60/60 in 10.3 min, also 60/60 against the deployed release. Report dirs are resolved absolute and [ch28a]-style tags map to their chapter. Area layout: split from the clamped source rect and keep the area switcher inside a narrow header. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
52 lines
1.9 KiB
TypeScript
52 lines
1.9 KiB
TypeScript
import { defineConfig, devices } from "@playwright/test";
|
|
import { DEPLOYED_ORIGIN, browserArgs, chromePath } from "./tests/deployed/support/browser-options";
|
|
|
|
/**
|
|
* Functional tests against the deployed site (default: https://49.232.250.35:58014).
|
|
*
|
|
* No webServer: it talks to the real origin. Headed on purpose — the suite is
|
|
* meant to be watched.
|
|
*
|
|
* Cost model: one fresh browser context means downloading and compiling the
|
|
* ~300 MB engine (~3 minutes). The suite therefore reuses a single persistent
|
|
* context per worker (see tests/deployed/support/deployed-test.ts); these
|
|
* `use` options only take effect in isolated mode (`DEPLOYED_ISOLATE=1`), which
|
|
* keeps per-test contexts and video capture.
|
|
*/
|
|
const videoMode = process.env.DEPLOYED_VIDEO ?? "retain-on-failure";
|
|
|
|
export default defineConfig({
|
|
testDir: "tests/deployed",
|
|
/* Hard cap: a case that cannot finish within a minute is a case that hangs,
|
|
* and a hanging case must not hold the display. Missing controls give up in
|
|
* 15 s and name the locator instead of waiting for the cap. */
|
|
timeout: 60_000,
|
|
expect: { timeout: 20_000 },
|
|
actionTimeout: 15_000,
|
|
navigationTimeout: 40_000,
|
|
fullyParallel: false,
|
|
workers: Number(process.env.DEPLOYED_WORKERS ?? "1") || 1,
|
|
retries: 0,
|
|
reporter: [
|
|
["list"],
|
|
...(process.env.PLAYWRIGHT_JSON_OUTPUT_FILE
|
|
? [["json", { outputFile: process.env.PLAYWRIGHT_JSON_OUTPUT_FILE }] as const]
|
|
: []),
|
|
],
|
|
use: {
|
|
baseURL: DEPLOYED_ORIGIN,
|
|
...devices["Desktop Chrome"],
|
|
headless: false,
|
|
viewport: { width: 1600, height: 900 },
|
|
acceptDownloads: true,
|
|
ignoreHTTPSErrors: process.env.DEPLOYED_IGNORE_HTTPS === "1",
|
|
screenshot: "on",
|
|
video: videoMode === "off" ? "off" : videoMode === "all" ? "on" : "retain-on-failure",
|
|
trace: "retain-on-failure",
|
|
launchOptions: {
|
|
...(chromePath() ? { executablePath: chromePath() } : {}),
|
|
args: browserArgs(),
|
|
},
|
|
},
|
|
});
|