mirror of
https://github.com/ChrisTitusTech/winutil.git
synced 2026-08-09 17:41:14 +10:00
Fix progress, update profiles, and documentation links (#4845)
* Improve O&O ShutUp10++ download flow * Refine Windows Update profile behavior and docs * Fix documentation link regressions * Restore updates when applying recommended profile
This commit is contained in:
+17
-1
@@ -152,7 +152,6 @@ Describe "XAML document" {
|
||||
"appspanel",
|
||||
"tweakspanel",
|
||||
"featurespanel",
|
||||
"updatespanel",
|
||||
"appxpanel",
|
||||
"WPFstandard",
|
||||
"WPFminimal",
|
||||
@@ -180,6 +179,23 @@ Describe "XAML 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"]')
|
||||
$expectedButtons = @{
|
||||
WPFUpdatessecurity = "Apply Recommended"
|
||||
WPFUpdatesdefault = "Restore Defaults"
|
||||
WPFUpdatesdisable = "Disable Updates"
|
||||
}
|
||||
|
||||
$profileGrid.GetAttribute("Columns") | Should -Be "3"
|
||||
foreach ($buttonName in $expectedButtons.Keys) {
|
||||
$button = $updatesTab.SelectSingleNode(".//*[local-name()='Button'][@Name='$buttonName']")
|
||||
$button.GetAttribute("Content") | Should -Be $expectedButtons[$buttonName]
|
||||
}
|
||||
$updatesTab.SelectSingleNode('.//*[@Name="updatespanel"]') | Should -BeNullOrEmpty
|
||||
}
|
||||
|
||||
It "contains Win11 Creator controls used by the ISO workflow" {
|
||||
$xamlNames = @(Get-WinUtilXamlRuntimeNamedControls | ForEach-Object { $_.Name })
|
||||
$requiredControls = @(
|
||||
|
||||
Reference in New Issue
Block a user