mirror of
https://github.com/actions/runner-images.git
synced 2025-12-20 06:35:47 +00:00
* [macOS] change Invoke-Pester function * added new logic * try another approach. * invoke-tests change * added a little bunch of tests. * remove import from browsers * added source for all tests covered scripts. * run all tests. * added proper module import * RunAll-Tests.ps1 changes. * added shebang * added new approach for tests. * the first line should be shebang * fixed nitpicks
34 lines
1008 B
PowerShell
34 lines
1008 B
PowerShell
Describe "Chrome" {
|
|
It "Chrome" {
|
|
$chromeLocation = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
|
$chromeLocation | Should -Exist
|
|
"'$chromeLocation' --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Chrome Driver" {
|
|
"chromedriver --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Edge" {
|
|
It "Microsoft Edge" {
|
|
$edgeLocation = "/Applications/Microsoft Edge.app/Contents/MacOS/Microsoft Edge"
|
|
$edgeLocation | Should -Exist
|
|
"'$edgeLocation' --version" | Should -ReturnZeroExitCode
|
|
}
|
|
|
|
It "Microsoft Edge Driver" {
|
|
"msedgedriver --version" | Should -ReturnZeroExitCode
|
|
}
|
|
}
|
|
|
|
Describe "Firefox" {
|
|
It "Firefox" {
|
|
$firefoxLocation = "/Applications/Firefox.app/Contents/MacOS/firefox"
|
|
$firefoxLocation | Should -Exist
|
|
"'$firefoxLocation' --version" | Should -ReturnZeroExitCode
|
|
}
|
|
It "Geckodriver" {
|
|
"geckodriver --version" | Should -ReturnZeroExitCode
|
|
}
|
|
} |