From 8ca8738e657c166d41ac1daa67d831d3bd5f74e0 Mon Sep 17 00:00:00 2001 From: Raphael Odini Date: Tue, 14 Nov 2023 12:30:47 +0100 Subject: [PATCH] fix selenium tests --- lemarche/www/auth/tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lemarche/www/auth/tests.py b/lemarche/www/auth/tests.py index 26c4f50c0..07fb6c1bf 100644 --- a/lemarche/www/auth/tests.py +++ b/lemarche/www/auth/tests.py @@ -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 @@ -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') @@ -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)