mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Fix chromedriver issues, and run headless on travis (#310)
* Fix chromedriver issues, and run headless on travis * Explicitly set chrome window size * Use travis chrome * Try chrome beta * Update chromedriver * Remove virtual display from travis config
This commit is contained in:
@@ -26,9 +26,13 @@ from django.conf import settings
|
||||
|
||||
import sys
|
||||
|
||||
|
||||
def create_browser():
|
||||
driver = webdriver.Chrome()
|
||||
driver.maximize_window()
|
||||
options = webdriver.ChromeOptions()
|
||||
options.add_argument("--window-size=1920,1080")
|
||||
if os.environ.get('CI', False):
|
||||
options.add_argument("--headless")
|
||||
driver = webdriver.Chrome(chrome_options=options)
|
||||
return driver
|
||||
|
||||
class UserRegistrationTest(LiveServerTestCase):
|
||||
|
||||
Reference in New Issue
Block a user