[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:
Mikhail Timofeev
2022-09-30 21:07:26 +03:00
committed by GitHub
parent c675cda187
commit 1def28243d

View File

@@ -47,6 +47,12 @@ Describe "Chrome" {
$chromePath | Should -Exist
$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
}
}
}