Add Chrome + Chromedriver test (#6326)
This commit is contained in:
@@ -1,6 +1,9 @@
|
|||||||
Describe "Chrome" {
|
Describe "Chrome" {
|
||||||
It "Chrome" {
|
BeforeAll {
|
||||||
$chromeLocation = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
$chromeLocation = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
|
||||||
|
}
|
||||||
|
|
||||||
|
It "Chrome" {
|
||||||
$chromeLocation | Should -Exist
|
$chromeLocation | Should -Exist
|
||||||
"'$chromeLocation' --version" | Should -ReturnZeroExitCode
|
"'$chromeLocation' --version" | Should -ReturnZeroExitCode
|
||||||
}
|
}
|
||||||
@@ -8,6 +11,12 @@ Describe "Chrome" {
|
|||||||
It "Chrome Driver" {
|
It "Chrome Driver" {
|
||||||
"chromedriver --version" | Should -ReturnZeroExitCode
|
"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" {
|
Describe "Selenium server" {
|
||||||
|
|||||||
Reference in New Issue
Block a user