Skip to content

Commit

Permalink
fix selenium tests
Browse files Browse the repository at this point in the history
  • Loading branch information
raphodn committed Nov 23, 2023
1 parent 19d043a commit 8ca8738
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lemarche/www/auth/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from django.urls import reverse
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.firefox.options import Options
from selenium.webdriver.firefox.options import Options as FirefoxOptions

from lemarche.users.factories import DEFAULT_PASSWORD, UserFactory
from lemarche.users.models import User
Expand Down Expand Up @@ -89,7 +89,7 @@ class SignupFormTest(StaticLiveServerTestCase):
def setUpClass(cls):
super().setUpClass()
# selenium browser # TODO: make it test-wide
options = Options()
options = FirefoxOptions()
options.headless = True
cls.driver = webdriver.Firefox(options=options)
# cls.driver = webdriver.Chrome(executable_path='/usr/bin/chromedriver')
Expand Down Expand Up @@ -243,7 +243,7 @@ class LoginFormTest(StaticLiveServerTestCase):
@classmethod
def setUpClass(cls):
super().setUpClass()
options = Options()
options = FirefoxOptions()
options.headless = True
cls.driver = webdriver.Firefox(options=options)
cls.driver.implicitly_wait(1)
Expand Down

0 comments on commit 8ca8738

Please sign in to comment.