[Windows] Test Chrome and Chrome Driver major versions are the same (#6332)
* Add Chrome + Chromedriver test * Get chromedriver version from versioninfo.txt * Use VersionInfo.ProductMajorPart * Add missing test cases block
This commit is contained in:
@@ -47,6 +47,12 @@ Describe "Chrome" {
|
|||||||
$chromePath | Should -Exist
|
$chromePath | Should -Exist
|
||||||
$chromeName | Should -BeExactly "chrome.exe"
|
$chromeName | Should -BeExactly "chrome.exe"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
It "Chrome and Chrome Driver major versions are the same" -TestCases @{chromePath = $chromePath} {
|
||||||
|
$chromeMajor = (Get-Item $chromePath).VersionInfo.ProductMajorPart
|
||||||
|
$chromeDriverMajor = (Get-Content $env:ChromeWebDriver\versioninfo.txt).Split(".")[0]
|
||||||
|
$chromeMajor | Should -BeExactly $chromeDriverMajor
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user