Skip to content

Commit 468a8f5

Browse files
committed
test: login mac
1 parent 0e865a4 commit 468a8f5

File tree

1 file changed

+9
-27
lines changed

1 file changed

+9
-27
lines changed

.github/workflows/ui-tests.yml

Lines changed: 9 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,14 @@ jobs:
7777
- uses: actions/setup-python@v4
7878
with:
7979
python-version: "3.10"
80-
- name: Set up ChromeDriver
81-
uses: nanasess/setup-chromedriver@v2
82-
with:
83-
chrome-version: 'stable'
80+
- name: Install ChromeDriver via Homebrew
81+
run: brew install --cask chromedriver
82+
- name: Verify ChromeDriver and Chrome
83+
run: |
84+
echo "ChromeDriver Version:"
85+
chromedriver --version
86+
echo "Chrome Version:"
87+
"/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" --version
8488
- name: Install dependencies
8589
run: pip install selenium
8690
- name: Install dependencies (Mac)
@@ -98,26 +102,4 @@ jobs:
98102
UNITY_APP_NAME: SampleApp
99103
MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
100104
working-directory: sample/Tests
101-
run: ${{ matrix.test_script }}
102-
test-ios:
103-
name: Run iOS UI tests 🧪
104-
runs-on: [ self-hosted, macOS ]
105-
steps:
106-
- uses: actions/checkout@v3
107-
with:
108-
lfs: true
109-
- name: Build iOS app
110-
working-directory: sample
111-
run: ./build_ios.sh
112-
- uses: actions/setup-python@v4
113-
with:
114-
python-version: "3.10"
115-
- name: Install dependencies
116-
run: pip install -r "sample/Tests/requirements-mobile.txt"
117-
- name: Run UI tests
118-
env:
119-
MAILSLURP_API_KEY: ${{ secrets.MAILSLURP_API_KEY }}
120-
BROWSERSTACK_USERNAME: ${{ secrets.BROWSERSTACK_USERNAME }}
121-
BROWSERSTACK_ACCESS_KEY: ${{ secrets.BROWSERSTACK_ACCESS_KEY }}
122-
working-directory: sample/Tests
123-
run: browserstack-sdk pytest -s ./test/test_ios.py --browserstack.config "browserstack.ios.yml"
105+
run: ${{ matrix.test_script }}

0 commit comments

Comments
 (0)