Files
runner-images/images/windows/scripts/tests/WinAppDriver.Tests.ps1
2023-11-15 11:24:45 +01:00

13 lines
426 B
PowerShell

Describe "WinAppDriver" {
It "WinAppDriver directory exists" {
Test-Path -Path "${env:ProgramFiles(x86)}\Windows Application Driver" | Should -BeTrue
}
}
Describe "Developer Mode" {
It "Developer Mode is enabled" {
$path = "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppModelUnlock";
Get-ItemProperty -Path $path | Select-Object -ExpandProperty "AllowDevelopmentWithoutDevLicense" | Should -Be 1
}
}