Add a smoke test runner, a shared harness, and safer build scripts

- pnpm smoke runs tests/smoke/ in parallel. It starts Vite when nothing
  serves SMOKE_URL, finds an installed Chrome when Playwright has no
  Chromium, and skips a test with a reason when a requirement that the
  test declares with "// @requires" is missing. Logs go to
  output/smoke/logs/.
- tests/smoke/_harness/ holds the Playwright launch, page error
  collection, the Tauri IPC mock with an in-memory workspace, and output
  folders. tabs/order uses it as the first converted test.
- Pin Playwright 1.63.0, the version that browser-runtime uses.
- RUNESTONE_PLUGIN_REPOS names the folder of the sibling plugin
  checkouts for buildPlugins, the menu audit, and the smoke tests.
- buildInstaller restores the version fields after Ctrl+C, keeps the
  backups of each attempt, stops when the browser runtime is not staged,
  and writes the file name instead of absolute paths to host.json.
- buildPlugins clears the staged Table Formulas package before copying.
- plugins/choiceMenus used the wrong Local Autocomplete folder name.
This commit is contained in:
Knotty Wyvern
2026-10-27 19:55:49 -07:00
parent e433bed28e
commit c66ea1ce83
20 changed files with 479 additions and 69 deletions
@@ -1,3 +1,4 @@
// @requires repo:RuneStone_Git/dist
// Run against the host dev server with PLAYWRIGHT_MODULE and CHROME_PATH when needed.
import { createRequire } from "node:module";
import { readFile, mkdir } from "node:fs/promises";