Restore native window animations and custom caption hit testing (#4888)

* feat: restore native window animations

* fix: disable native caption button hit testing

* test: remove fake window state assertions
This commit is contained in:
Omar
2026-08-03 18:54:06 -05:00
committed by GitHub
parent f7361fdb72
commit b832da622f
4 changed files with 6 additions and 34 deletions
-28
View File
@@ -445,31 +445,3 @@ Describe "Invoke-WPFButton progress cleanup" {
}
}
Describe "Invoke-WPFButton window state" {
BeforeEach {
New-WinUtilUiStateTestContext
$script:sync.ProcessRunning = $true
$script:sync.Form = [pscustomobject]@{
WindowState = [Windows.WindowState]::Normal
}
}
AfterEach {
Remove-Variable -Name sync -Scope Script -ErrorAction SilentlyContinue
Remove-Variable -Name sync -Scope Global -ErrorAction SilentlyContinue
}
It "maximizes a normal window" {
Invoke-WPFButton -Button "WPFMaximizeButton"
$script:sync.Form.WindowState | Should -Be ([Windows.WindowState]::Maximized)
}
It "restores a maximized window" {
$script:sync.Form.WindowState = [Windows.WindowState]::Maximized
Invoke-WPFButton -Button "WPFMaximizeButton"
$script:sync.Form.WindowState | Should -Be ([Windows.WindowState]::Normal)
}
}