mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 09:31:15 +10:00
Restore Document category and applications (#4902)
* feat: restore document category Moves existing document-focused apps into the Document category and adds its filter chip. * feat: restore document applications Restores reviewed document-focused apps removed in PR #4451. * chore: update apps list as per code review comments This also updates the link for PDF24 Creator * test: verify document category filter wiring Covers the Document filter handler and config category presence. * fix: categorize Calibre as multimedia Keeps the e-book reader in Multimedia Tools.
This commit is contained in:
@@ -142,6 +142,7 @@ Describe "XAML document" {
|
||||
"WPFSearchChipBrowsers",
|
||||
"WPFSearchChipCommunications",
|
||||
"WPFSearchChipDevelopment",
|
||||
"WPFSearchChipDocument",
|
||||
"WPFSearchChipGames",
|
||||
"WPFSearchChipMicrosoftTools",
|
||||
"WPFSearchChipMultimediaTools",
|
||||
@@ -179,6 +180,15 @@ Describe "XAML document" {
|
||||
}
|
||||
}
|
||||
|
||||
It "wires the Document search chip to an existing Document category" {
|
||||
$mainScript = Get-Content -Path $script:mainScriptPath -Raw
|
||||
$mainScript | Should -Match '\$sync\["WPFSearchChipDocument"\]\.Add_Click\(\{ Set-WinUtilAppCategoryFilter -Category "Document" \}\)'
|
||||
|
||||
$applications = Get-WinUtilConfigObject -Name "applications"
|
||||
$categories = @($applications.PSObject.Properties | ForEach-Object { $_.Value.category } | Sort-Object -Unique)
|
||||
$categories | Should -Contain "Document"
|
||||
}
|
||||
|
||||
It "presents the three Updates profiles with accurate action labels" {
|
||||
$updatesTab = $script:xaml.SelectSingleNode('//*[local-name()="TabItem"][@Name="WPFTab4"]')
|
||||
$profileGrid = $updatesTab.SelectSingleNode('.//*[local-name()="UniformGrid"]')
|
||||
|
||||
Reference in New Issue
Block a user