Move the smoke tests onto the shared harness

Each smoke test now uses tests/smoke/_harness/ for Playwright, the Tauri
IPC mock, the in-memory workspace, and output folders, instead of its
own copy. The tests keep their interactions and assertions. Mock
handlers that the app never calls are gone.

- Split the four mixed regression scripts into 18 feature tests.
- Update tests that broke when the app changed on purpose. Each update
  cites the app source that shows the new behavior.
- Mark two real app defects with @known-issue: the settings window
  controls are 1px shorter than the main window controls, and plugin
  tabs cannot be reordered by dragging without a workspace.
- Merge three palette unit tests into one table-driven test.
- The native tests load Playwright through the harness and read
  NATIVE_CDP_URL, with their old variable names as fallbacks.
- A failed smoke test saves a screenshot and prints the console errors.
- The runner runs failed tests once more, alone, and reports a test
  that then passes as flaky.

Result: 89 passed, 1 flaky, 2 known issues, 0 failed. Before, 45 of 78
passed.
This commit is contained in:
Knotty Wyvern
2026-10-27 20:58:55 -07:00
parent c66ea1ce83
commit 69f90df571
109 changed files with 5920 additions and 7915 deletions
+4 -4
View File
@@ -20,11 +20,11 @@ The [development guide](docs/development.md#architecture) maps the source folder
| --- | --- |
| `pnpm install --frozen-lockfile` | Install dependencies |
| `pnpm tauri dev` | Run the desktop app with hot reload |
| `pnpm check` | Type checks |
| `pnpm test` | Unit tests (`scripts/*.spec.ts`) |
| `pnpm check` | Type checks of the app and the unit tests |
| `pnpm test` | Unit tests (`tests/unit/`) |
| `cargo test --manifest-path src-tauri/Cargo.toml --lib` | Rust tests |
| `pnpm check:menus` | Menu surface inventory |
| `node scripts/<name>.smoke.mjs` | One browser smoke test. See [Browser smoke tests](docs/development.md#browser-smoke-tests). |
| `pnpm smoke [filter...]` | Browser smoke tests (`tests/smoke/`). See [Browser smoke tests](docs/development.md#browser-smoke-tests). |
| `pnpm build:installer --version <version>` | Windows installer. See [Builds](docs/builds.md). |
| `pnpm package:plugin <compiled-folder> [output-folder]` | Plugin ZIP |
@@ -107,7 +107,7 @@ Rules from the owner:
- A selection gets one outline around each group of adjacent selected items, with no borders on shared internal edges.
- Colors follow the `ui-functional-color` skill and `docs/ui-color.md`: vivid by default, informative text opaque.
- Before Review, check both themes, narrow windows, long lists, keyboard focus, and viewport edges.
For menu work, run `pnpm check:menus` and `tests/smoke/menus/consistency.smoke.mjs`.
For menu work, run `pnpm check:menus` and `pnpm smoke menus`.
Keep screenshots of the exact control that the card names.
- Record a rule change, a recurring problem, or an exception in `docs/design-decisions.md`. An isolated fix needs no entry.