Skip to content

Commit afd193e

Browse files
committed
🙏 try to fix failing selenium test on macos
1 parent a4d5287 commit afd193e

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,10 @@ jobs:
2323
strategy:
2424
fail-fast: false
2525
matrix:
26-
os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
27-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
26+
# os: ['windows-latest', 'macOS-latest', 'ubuntu-latest']
27+
os: ['macOS-latest', 'ubuntu-latest']
28+
# python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13']
29+
python-version: ['3.8']
2830
exclude:
2931
- os: ubuntu-latest
3032
python-version: '3.12'
@@ -41,10 +43,15 @@ jobs:
4143
with:
4244
python-version: ${{ matrix.python-version }}
4345

46+
- name: Install Chrome
47+
uses: browser-actions/setup-chrome@v1
48+
if: matrix.os == 'macOS-latest'
49+
4450
- uses: nanasess/setup-chromedriver@v2
45-
# with:
51+
with:
4652
# Optional: do not specify to match Chrome's version
4753
# chromedriver-version: '114.0.5735.90'
54+
chromedriver-version: '119.0.6045.105' # Match Chrome version
4855

4956
- name: Install Poetry
5057
uses: snok/install-poetry@v1

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def driver():
5252
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
5353
from seleniumwire import webdriver
5454

55-
time.sleep(1)
55+
time.sleep(3)
5656

5757
options = Options()
5858
d = DesiredCapabilities.CHROME

0 commit comments

Comments
 (0)