Skip to content

Cover the pure config import/export and deployment-summary logic - #82

Merged
BiosSystem merged 1 commit into
masterfrom
feature/gui-tests-epic-q-2
Sep 25, 2026
Merged

BiosSystem merged 1 commit into
masterfrom
feature/gui-tests-epic-q-2

Conversation

@BiosSystem

Copy link
Copy Markdown
Owner

Second GUI test slice (Epic Q). Covers the data-shaping functions in Show-ConfigWindow.ps1 and MainWindow-Deployment.ps1 that had no tests:

  • Get-AvailableImportExportCategories - which sections a saved config offers.
  • Get-DeploymentCategoryDetailString - the deployment summary, across every user / app-removal-scope / options branch, including the other-user fallback and the false-option case.
  • Build-CategoryDetails - per-category detail strings and app/tweak count pluralization (0 / 1 / many).
  • Get-SavedAppIdsFromSettingsJson - parsing the saved app list from a CSV string or an array, trimming and dropping empties.

None touch WPF. The files declare WPF types on other functions' parameters, but PowerShell resolves those at call time, so the files dot-source and these functions run with no WPF loaded and no UI thread - verified in an MTA process, matching the pwsh unit job. Wired into test.yml.

Test-only; no product change, no release. Local: static validation clean (137 files), full Tests\Unit 245 passed / 0 failed (13 new).

Second GUI test slice. Show-ConfigWindow.ps1 and MainWindow-Deployment.ps1
contain functions that only shape data, mixed in with the dialog code:
- which sections a saved config offers (Get-AvailableImportExportCategories)
- the deployment summary string, with all its user/scope/option branches
- the per-category detail strings and count pluralization
- parsing the saved app list (trim, drop empties)

None touch WPF. The files declare WPF types on other functions' parameters,
but PowerShell resolves those at call time, so the files dot-source and these
functions run with no WPF loaded and no UI thread, which keeps them working
under the pwsh unit job. Wired into test.yml.
@BiosSystem
BiosSystem merged commit 656abbb into master Sep 25, 2026
1 check passed
@BiosSystem
BiosSystem deleted the feature/gui-tests-epic-q-2 branch September 25, 2026 12:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant