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:
@@ -14,6 +14,7 @@
|
||||
"check:menus": "node scripts/menuSurfaceAudit.mjs",
|
||||
"tauri": "tauri",
|
||||
"test": "node --experimental-strip-types --test \"tests/unit/**/*.spec.ts\"",
|
||||
"smoke": "node scripts/smoke.mjs",
|
||||
"build:plugins": "node scripts/buildPlugins.mjs",
|
||||
"browser:check": "npm --prefix browser-runtime run check",
|
||||
"browser:test": "npm --prefix browser-runtime test",
|
||||
@@ -56,6 +57,7 @@
|
||||
"@sveltejs/vite-plugin-svelte": "^7.1.2",
|
||||
"@tauri-apps/cli": "^2",
|
||||
"@types/node": "24.19.2",
|
||||
"playwright": "1.63.0",
|
||||
"svelte": "^5.56.3",
|
||||
"svelte-check": "^4.6.0",
|
||||
"typescript": "~6.0.3",
|
||||
|
||||
Reference in New Issue
Block a user