[tests] setup selenium for travis ci
This commit is contained in:
@@ -4,6 +4,7 @@ from django.contrib.auth.models import User
|
||||
from django.urls import reverse
|
||||
from django.contrib.staticfiles.testing import StaticLiveServerTestCase
|
||||
from selenium.webdriver.firefox.webdriver import WebDriver
|
||||
from selenium.webdriver.firefox.options import Options
|
||||
|
||||
from ..management.commands.createtestdata import create_test_data
|
||||
|
||||
@@ -12,7 +13,10 @@ class LiveFilterTest(StaticLiveServerTestCase):
|
||||
@classmethod
|
||||
def setUpClass(cls):
|
||||
super().setUpClass()
|
||||
cls.selenium = WebDriver()
|
||||
|
||||
options = Options()
|
||||
options.headless = True
|
||||
cls.selenium = WebDriver(options=options)
|
||||
cls.selenium.implicitly_wait(10)
|
||||
|
||||
@classmethod
|
||||
|
||||
Reference in New Issue
Block a user