Skip to content

Commit

Permalink
Try using Firefox on macOS too
Browse files Browse the repository at this point in the history
  • Loading branch information
pentamassiv committed Aug 15, 2024
1 parent dabb7a3 commit cf29929
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/common/browser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ pub static BROWSER_INSTANCE: std::sync::LazyLock<Option<std::process::Child>> =
.expect("Failed to start Firefox on Windows")
} else if cfg!(target_os = "macos") {
// On macOS, use the "open" command to run Safari (Firefox is not preinstalled)
std::process::Command::new("open")
.args(["-a", "Safari", &url])
std::process::Command::new("firefox")
.args(["--kiosk", &url])
.spawn()
.expect("Failed to start Safari on macOS")
.expect("Failed to start Firefox in kiosk mode on macOS")
} else {
// On Linux, use the "firefox" command
std::process::Command::new("firefox")
Expand Down

0 comments on commit cf29929

Please sign in to comment.