Cover the pure config import/export and deployment-summary logic - #82
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Second GUI test slice (Epic Q). Covers the data-shaping functions in
Show-ConfigWindow.ps1andMainWindow-Deployment.ps1that 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
pwshunit job. Wired intotest.yml.Test-only; no product change, no release. Local: static validation clean (137 files), full
Tests\Unit245 passed / 0 failed (13 new).