[macOS] Activate "Allow Remote Automation" Safari option during image generation (#3996)
* Move logic to activate "Allow Remote Automation" from base image to image gen scripts * add shebang
This commit is contained in:
@@ -31,4 +31,15 @@ Describe "Firefox" {
|
||||
It "Geckodriver" {
|
||||
"geckodriver --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Safari" {
|
||||
It "'Allow Remote Automation' option is activated" {
|
||||
$plistPath = "$env:HOME/Library/WebDriver/com.apple.Safari.plist"
|
||||
$command = "/usr/libexec/PlistBuddy -c 'print AllowRemoteAutomation' $plistPath"
|
||||
$plistPath | Should -Exist
|
||||
$commandResult = Get-CommandResult $command
|
||||
$commandResult.ExitCode | Should -Be 0
|
||||
$commandResult.Output | Should -Be "true"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user