Files
runner-images/images/win/scripts/Tests/WinAppDriver.Tests.ps1
Maxim Lobanov 8481b2c846 [Windows] Improve Visual Studio installation scripts to support Preview versions (#3850)
* Support Preview versions of Visual Studio

* resolve comments

* Fix test

* fix tests
2021-08-04 22:35:44 +03: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
}
}