mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2026-01-22 21:20:48 +08:00
Add Chrome + Chromedriver test (#6326)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
Describe "Chrome" {
|
||||
It "Chrome" {
|
||||
BeforeAll {
|
||||
$chromeLocation = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
||||
}
|
||||
|
||||
It "Chrome" {
|
||||
$chromeLocation | Should -Exist
|
||||
"'$chromeLocation' --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
@@ -8,6 +11,12 @@ Describe "Chrome" {
|
||||
It "Chrome Driver" {
|
||||
"chromedriver --version" | Should -ReturnZeroExitCode
|
||||
}
|
||||
|
||||
It "Chrome and Chrome Driver major versions are the same" {
|
||||
$chromeMajor = (& $chromeLocation --version).Trim("Google Chrome ").Split(".")[0]
|
||||
$chromeDriverMajor = (chromedriver --version).Trim("ChromeDriver ").Split(".")[0]
|
||||
$chromeMajor | Should -BeExactly $chromeDriverMajor
|
||||
}
|
||||
}
|
||||
|
||||
Describe "Selenium server" {
|
||||
|
||||
Reference in New Issue
Block a user