Skip to content

Commit

Permalink
chore: Use SAUCE_FIREFOX_BROWSER_PROFILE for browser args setting (#57)
Browse files Browse the repository at this point in the history
* chore: Use SAUCE_FIREFOX_BROWSER_PROFILE for browser args setting

* use Chrome@129 temporarily

* fix browser args env var setting

* update todo comment
  • Loading branch information
tianfeng92 authored Nov 5, 2024
1 parent 46b4a45 commit 0317adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 15 deletions.
2 changes: 2 additions & 0 deletions .sauce/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ rootDir: ./
suites:
- name: "Chrome on macOS"
browserName: "chrome"
# Temporarily use Chrome 129. This will be removed once TestCafe resolves the issue with Chrome 130 availability.
browserVersion: "129"
src:
- "tests/*.test.js" # test files glob
platformName: "macOS 12"
Expand Down
17 changes: 2 additions & 15 deletions examples/browser_profile/.sauce/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,17 @@ rootDir: ./
suites:
- name: "Browser Profile macOS"
browserName: "firefox"
browserArgs: [
# Caution: The path contains a reference to the runner version, '3.9.0'
# in this example. The runner version depends on the requested TestCafe
# version, but is not identical. You can see the runner version in the
# logs during startup:
# Sauce TestCafe Runner 3.9.0
# Running TestCafe 3.6.2
"-profile /Volumes/Sauce/saucectl-runners/sauce-testcafe-runner/3.9.0/bundle/__project__/firefox_test_profile",
]
src:
- "tests/*.test.js"
platformName: "macOS 12"
- name: "Browser Profile Windows"
browserName: "firefox"
browserArgs:
[
"-profile D:\\sauce-testcafe-runner\\3.9.0\\bundle\\__project__\\firefox_test_profile",
]
src:
- "tests/*.test.js"
platformName: "Windows 11"

# env:
# SAUCE_FIREFOX_BROWSER_PROFILE: "firefox_test_profile" # Coming soon!
env:
SAUCE_FIREFOX_BROWSER_PROFILE: "firefox_test_profile"

reporters:
spotlight: # Prints an overview of failed or otherwise interesting jobs.
Expand Down

0 comments on commit 0317adf

Please sign in to comment.