clean up redundant/problematic tests

This commit is contained in:
Jeffrey
2026-10-28 17:28:39 +01:00
parent 7cb6e6ade4
commit d2cb97a4ef
6 changed files with 46 additions and 66 deletions
-17
View File
@@ -100,23 +100,6 @@ Describe 'XAML UI contracts' {
$failures | Should -BeNullOrEmpty
}
It 'keeps the main window navigation and deployment controls available' {
$mainWindow = Get-Content -LiteralPath (Join-Path $script:SchemaPath 'MainWindow.xaml') -Raw
$requiredNames = @(
'MainTabControl'
'HomeTab'
'DeploymentSettingsTab'
'DeploymentApplyBtn'
'UserSelectionCombo'
'AppSelectionPanel'
'AppSelectionStatus'
)
foreach ($name in $requiredNames) {
$mainWindow | Should -Match ('(?:x:Name|\bName)\s*=\s*"{0}"' -f [regex]::Escape($name))
}
}
It 'exposes <Schema> links as keyboard-accessible hyperlinks with automation names' -TestCases @(
@{ Schema = 'AboutWindow.xaml'; LinkNames = @('ProjectLink', 'KofiLink') }
@{ Schema = 'RestoreBackupWindow.xaml'; LinkNames = @('NonRevertibleWikiLink') }