Files
runner-images/images/linux/scripts/tests/Browsers.Tests.ps1
T

42 lines
1023 B
PowerShell
Raw Normal View History

Describe "Firefox" {
It "Firefox" {
2023-05-11 10:21:01 +02:00
"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
}
2022-09-30 07:48:15 +03:00
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
}
}
2022-07-08 07:49:17 +02:00
Describe "Edge" {
It "Edge" {
"microsoft-edge --version" | Should -ReturnZeroExitCode
}
It "Edge Driver" {
"msedgedriver --version" | Should -ReturnZeroExitCode
}
2022-07-08 07:49:17 +02:00
}
Describe "Chromium" {
It "Chromium" {
2021-04-09 14:50:48 +03:00
"chromium-browser --version" | Should -ReturnZeroExitCode
}
2022-07-08 07:49:17 +02:00
}