Files
runner-images/images/ubuntu/scripts/tests/Browsers.Tests.ps1
Erik Bershel 3d2dd97aa7 [Ubuntu] Add Ubuntu-24.04 base image (#9754)
Co-authored-by: Alexey Ayupov <alexey-ayupov@github.com>
2024-04-26 23:18:26 +02:00

42 lines
1.1 KiB
PowerShell

Describe "Firefox" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
It "Firefox" {
"firefox --version" | Should -ReturnZeroExitCode
}
It "Geckodriver" {
"geckodriver --version" | Should -ReturnZeroExitCode
}
}
Describe "Chrome" {
It "Chrome" {
"google-chrome --version" | Should -ReturnZeroExitCode
}
It "Chrome Driver" {
"chromedriver --version" | Should -ReturnZeroExitCode
}
It "Chrome and Chrome Driver major versions are the same" {
$chromeMajor = (google-chrome --version).Trim("Google Chrome ").Split(".")[0]
$chromeDriverMajor = (chromedriver --version).Trim("ChromeDriver ").Split(".")[0]
$chromeMajor | Should -BeExactly $chromeDriverMajor
}
}
Describe "Edge" -Skip:((-not (Test-IsUbuntu20)) -and (-not (Test-IsUbuntu22))) {
It "Edge" {
"microsoft-edge --version" | Should -ReturnZeroExitCode
}
It "Edge Driver" {
"msedgedriver --version" | Should -ReturnZeroExitCode
}
}
Describe "Chromium" {
It "Chromium" {
"chromium-browser --version" | Should -ReturnZeroExitCode
}
}