mirror of
https://github.com/actions/runner-images-sangeeth.git
synced 2025-12-28 12:27:54 +08:00
[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
|
||||
$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