Skip to content

Commit

Permalink
Configure firefox browser headless with new version of selenium to ru…
Browse files Browse the repository at this point in the history
…n frontend tests
  • Loading branch information
notoraptor committed Dec 8, 2023
1 parent 1b20511 commit 49d5a38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions tests/functional/serving/test_frontend.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,12 @@

from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options


def _get_driver():
# Add options to hide browser
options = Options()
options.headless = True
options = webdriver.FirefoxOptions()
options.add_argument("-headless")
# Load driver with options
driver = webdriver.Firefox(options=options)
driver.get("http://127.0.0.1:3000")
Expand Down
2 changes: 1 addition & 1 deletion tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pytest-lazy-fixture
pytest-custom_exit_code
scikit-learn
ptera >= 1.1.0
selenium
selenium==4.16.0

0 comments on commit 49d5a38

Please sign in to comment.