Add Chrome + Chromedriver test (#6326)

This commit is contained in:
Mikhail Timofeev
2022-09-29 20:02:58 +03:00
committed by GitHub
parent 7c44272788
commit 4944af825e

View File

@@ -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" {