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
+6 -9
View File
@@ -31,7 +31,7 @@ Output:
| File | Contents |
| --- | --- |
| `releases/<version>/RuneStone_<version>_x64-setup.exe` | The setup file to distribute |
| `releases/<version>/host.json` | The release version, the encoded toolchain and Windows versions, the path, the size in bytes, and the SHA-256 hash |
| `releases/<version>/host.json` | The release version, the encoded toolchain and Windows versions, the file name, the size in bytes, and the SHA-256 hash |
The script prints `Installer available: <path>` when it completes.
After a successful build, the version fields keep the new version.
@@ -43,9 +43,9 @@ Example, from the 0.1.44 download link in the README: version `0.1.44` gives `re
Source: `scripts/buildInstaller.mjs`.
1. Reads the version and makes sure that all version fields match the current version.
2. Makes sure that downgrade protection stays on in `tauri.conf.json` and `tauri.windows.conf.json`.
2. Makes sure that downgrade protection stays on in `tauri.conf.json` and `tauri.windows.conf.json`, and that the browser runtime is staged.
3. Stops if the setup file or `host.json` exists in the bundle folder or in `releases/<version>/`.
4. Saves copies of the four version files as `*.before` in `output/installer-build/<version>/`.
4. Saves copies of the four version files as `*.before` in `output/installer-build/<version>/<time>/`, a new folder for each attempt.
It also writes the NSIS template and a configuration override to that folder.
5. Writes the new version to `package.json`, `tauri.conf.json`, `Cargo.toml`, and `Cargo.lock`.
6. Runs `tauri build --no-bundle -- --locked`. This runs `pnpm build` and compiles the release app.
@@ -55,12 +55,9 @@ Source: `scripts/buildInstaller.mjs`.
### Failure and rollback
If a step fails, the script restores the four version files.
It moves partial setup files and `host.json` into `output/installer-build/<version>/` with a `.failed-<timestamp>` suffix.
Ctrl+C stops the script before this cleanup. The version files then keep the new version.
Before you run the script again, copy the `*.before` files from `output/installer-build/<version>/` back to their original names.
A new run with the same version replaces those copies.
If a step fails, or you press Ctrl+C, the script restores the four version files.
It moves partial setup files and `host.json` into the folder of that attempt with a `.failed-<timestamp>` suffix.
If the process is killed before this cleanup, copy the `*.before` files of the attempt back to their original names.
## Installer requirements