Skip to content

Commit

Permalink
Fix firefox headless option
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Nov 28, 2023
1 parent 773b1d2 commit 8466a17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lemarche/www/auth/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,8 @@ def setUpClass(cls):
super().setUpClass()
# selenium browser # TODO: make it test-wide
options = Options()
options.headless = True
options.add_argument("-headless")
cls.driver = webdriver.Firefox(options=options)
# cls.driver = webdriver.Chrome(executable_path='/usr/bin/chromedriver')
cls.driver.implicitly_wait(1)
# other init
cls.user_count = User.objects.count()
Expand Down Expand Up @@ -255,7 +254,7 @@ class LoginFormTest(StaticLiveServerTestCase):
def setUpClass(cls):
super().setUpClass()
options = Options()
options.headless = True
options.add_argument("-headless")
cls.driver = webdriver.Firefox(options=options)
cls.driver.implicitly_wait(1)

Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ poethepoet = "0.12.2"
pre-commit = "2.20.0"
pyproject-flake8 = "6.1.0"
pytest-django = "4.5.2"
selenium = "^4.10.0"
selenium = "4.15.2"
tblib = "^2.0.0"

[tool.poetry.scripts]
Expand Down

0 comments on commit 8466a17

Please sign in to comment.