Skip to content

Commit febd890

Browse files
committed
ci: set chrome as default browser
1 parent 82c12e9 commit febd890

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/ui-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,12 @@ jobs:
8585
chromedriver --version
8686
echo "Chrome Version:"
8787
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version
88+
- name: Set Chrome as the default browser
89+
run: |
90+
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
91+
'{"LSHandlerURLScheme" = "http"; "LSHandlerRoleAll" = "com.google.chrome";}'
92+
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
93+
'{"LSHandlerURLScheme" = "https"; "LSHandlerRoleAll" = "com.google.chrome";}'
8894
- name: Install dependencies
8995
run: pip install selenium
9096
- name: Install dependencies (Mac)

0 commit comments

Comments
 (0)