Skip to content

Commit

Permalink
Fixed Selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
clintonb committed Aug 11, 2024
1 parent 828248d commit 88dee4f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,17 @@ jobs:
name: Visual tests
runs-on: ubuntu-latest

services:
selenium:
image: selenium/standalone-firefox
options: --shm-size=2gb
ports:
- 4444:4444

steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3

- name: Install Selenium dependencies
run: |
sudo apt-get -qq update
sudo apt-get -y install firefox xvfb
- name: Install python dependencies
run: |
python -m pip install --upgrade pip
Expand Down
2 changes: 1 addition & 1 deletion test_project/qunit-runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
URL = "file://" + ROOT + "/qunit.html"
TIMEOUT = 5

driver = webdriver.Firefox()
driver = webdriver.Remote(options=webdriver.FirefoxOptions())
driver.set_page_load_timeout(TIMEOUT)
driver.get(URL)

Expand Down

0 comments on commit 88dee4f

Please sign in to comment.