Skip to content

Commit

Permalink
fix(test): hotfix GeckoDriver bug with wrong Firefox path
Browse files Browse the repository at this point in the history
See details here: mozilla/geckodriver#2062
  • Loading branch information
k-dovgan committed May 15, 2023
1 parent 9f0894a commit efd9744
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/test_html_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ def environment_main_and_nonci(request, tmp_path):
def browser():
options = Options()
options.headless = True
# Deleting SNAP variables is hotfix for geckodriver bug: https://github.com/mozilla/geckodriver/issues/2062
for key in os.environ:
if "SNAP" in key:
del os.environ[key]
firefox = webdriver.Firefox(options=options)
yield firefox
firefox.close()
Expand Down

0 comments on commit efd9744

Please sign in to comment.