From 8b2f2a93541615dd89be0f787cf8d1c1e1a2a747 Mon Sep 17 00:00:00 2001 From: Arona Jones Date: Tue, 13 Oct 2020 09:46:24 +0100 Subject: [PATCH] Fix tests / default to headless tests (fingers crossed) --- PyRIGS/tests/base.py | 2 +- RIGS/templates/event_form.html | 4 ++-- RIGS/templates/partials/contact_details_form.html | 4 ++-- RIGS/templates/partials/event_details_form.html | 2 +- assets/views.py | 5 +++-- 5 files changed, 9 insertions(+), 8 deletions(-) diff --git a/PyRIGS/tests/base.py b/PyRIGS/tests/base.py index 5d0ea81e..b6b5678d 100644 --- a/PyRIGS/tests/base.py +++ b/PyRIGS/tests/base.py @@ -26,8 +26,8 @@ def create_browser(): options.add_argument("--disk-cache-size=0") # God Save The Queen options.add_argument("--lang=en_GB") + options.add_argument("--headless") if os.environ.get('CI', False): - options.add_argument("--headless") options.add_argument("--no-sandbox") driver = webdriver.Chrome(options=options) return driver diff --git a/RIGS/templates/event_form.html b/RIGS/templates/event_form.html index b31b3d4f..22195510 100644 --- a/RIGS/templates/event_form.html +++ b/RIGS/templates/event_form.html @@ -128,7 +128,7 @@ {# Notes and item shit #}
-