Skip to content

Commit bb807e4

Browse files
committed
test: set chrome as default browser
1 parent 303ed89 commit bb807e4

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ui-tests.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,18 @@ jobs:
9191
'{"LSHandlerURLScheme" = "http"; "LSHandlerRoleAll" = "com.google.chrome";}'
9292
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
9393
'{"LSHandlerURLScheme" = "https"; "LSHandlerRoleAll" = "com.google.chrome";}'
94+
- name: Install duti
95+
run: brew install duti
96+
- name: Set Chrome as the Default Browser
97+
run: |
98+
duti -s com.google.chrome http
99+
duti -s com.google.chrome https
100+
- name: Verify Default Browser
101+
run: |
102+
echo "Default app for HTTP:"
103+
duti -x http
104+
echo "Default app for HTTPS:"
105+
duti -x https
94106
- name: Install dependencies
95107
run: pip install selenium
96108
- name: Install dependencies (Mac)

0 commit comments

Comments
 (0)