Skip to content

Commit

Permalink
Bump to SkyPortal 0bd5f691fe7f1f773f33a3511089bc2fbec8bdcf
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Oct 3, 2024
1 parent 7307784 commit d7339a3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 7 additions & 3 deletions extensions/skyportal/baselayer/app/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ def click_css(self, css, timeout=10, scroll_parent=False):

@pytest.fixture(scope="session")
def driver(request):
import shutil

from selenium import webdriver
from webdriver_manager.firefox import GeckoDriverManager

Expand All @@ -164,9 +166,11 @@ def driver(request):
),
)

service = webdriver.firefox.service.Service(
executable_path=GeckoDriverManager().install()
)
executable_path = shutil.which("geckodriver")
if executable_path is None:
executable_path = GeckoDriverManager().install()
service = webdriver.firefox.service.Service(executable_path=executable_path)

driver = MyCustomWebDriver(options=options, service=service)
driver.set_window_size(1920, 1200)
login(driver)
Expand Down

0 comments on commit d7339a3

Please sign in to comment.