Skip to content

Commit

Permalink
fixup! test(selenium): run tests across multiple {browser, js} combin…
Browse files Browse the repository at this point in the history
…ations
  • Loading branch information
Restioson committed Nov 6, 2024
1 parent c73b290 commit 66b81a0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/general/tests/test_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,8 @@ def setUpClass(cls):
elif browser == "firefox":
# From https://stackoverflow.com/a/74188454
options = FirefoxOptions()
options.binary_location = subprocess.getoutput("find /snap/firefox -name firefox").split("\n")[-1]
geckodriver_loc = subprocess.getoutput("find /snap/firefox -name geckodriver").split("\n")[-1]
service = FirefoxService(executable_path=geckodriver_loc)
cls.driver = FirefoxWebDriver(service=service, options=options)
options.add_argument("-headless")
cls.driver = FirefoxWebDriver(options=options)
elif browser == "safari":
cls.driver = SafariWebDriver()

Expand Down

0 comments on commit 66b81a0

Please sign in to comment.