diff --git a/SecretNote/tests.py b/SecretNote/tests.py index 8334c5f..2686bb8 100644 --- a/SecretNote/tests.py +++ b/SecretNote/tests.py @@ -27,10 +27,13 @@ def is_element_present_by_css(driver, css): class EndToEndTests(StaticLiveServerTestCase): @classmethod - def setUpClass(cls): - super().setUpClass() + def setUp(cls): options = Options() - options.add_argument("--headless") + options.headless = True + options.add_argument("--no-sandbox") + options.add_argument("--disable-dev-shm-usage") + options.add_argument("--disable-gpu") + cls.driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options) cls.driver.implicitly_wait(10)