91
91
'{"LSHandlerURLScheme" = "http"; "LSHandlerRoleAll" = "com.google.chrome";}'
92
92
defaults write com.apple.LaunchServices/com.apple.launchservices.secure LSHandlers -array-add \
93
93
'{"LSHandlerURLScheme" = "https"; "LSHandlerRoleAll" = "com.google.chrome";}'
94
- - name : Install duti (default app tool)
95
- run : |
96
- brew install duti
97
-
98
- - name : Check default browser using duti
99
- run : |
100
- duti -x http
101
94
- name : Install dependencies
102
95
run : pip install selenium
103
96
- name : Install dependencies (Mac)
@@ -109,10 +102,29 @@ jobs:
109
102
else
110
103
pip install -r "sample/Tests/requirements-mobile.txt"
111
104
fi
112
- - name : Run UI tests
113
- env :
114
- UNITY_APP_PATH : SampleApp.app
115
- UNITY_APP_NAME : SampleApp
116
- MAILSLURP_API_KEY : ${{ secrets.MAILSLURP_API_KEY }}
117
- working-directory : sample/Tests
118
- run : ${{ matrix.test_script }}
105
+ - name : Open URL
106
+ run : |
107
+ open "https://www.google.com"
108
+ - name : Check if Chrome is running
109
+ run : |
110
+ if pgrep -x "Google Chrome" > /dev/null
111
+ then
112
+ echo "Chrome is running"
113
+ else
114
+ echo "Chrome is not running"
115
+ fi
116
+ - name : Check if Safari is running
117
+ run : |
118
+ if pgrep -x "Safari" > /dev/null
119
+ then
120
+ echo "Safari is running"
121
+ else
122
+ echo "Safari is not running"
123
+ fi
124
+ # - name: Run UI tests
125
+ # env:
126
+ # UNITY_APP_PATH: SampleApp.app
127
+ # UNITY_APP_NAME: SampleApp
128
+ # MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
129
+ # working-directory: sample/Tests
130
+ # run: ${{ matrix.test_script }}
0 commit comments