From defc987a88a1ee84f456d5934c952e0cc4a8b01f Mon Sep 17 00:00:00 2001 From: Jeremy Bowman <jbowman@edx.org> Date: Thu, 2 Aug 2018 11:44:38 -0400 Subject: [PATCH] TE-2663 Run bok-choy tests in headless Firefox --- requirements/edx/base.in | 2 +- requirements/edx/development.txt | 4 ++-- requirements/edx/testing.txt | 4 ++-- scripts/generic-ci-tests.sh | 1 + tox.ini | 2 ++ 5 files changed, 8 insertions(+), 5 deletions(-) diff --git a/requirements/edx/base.in b/requirements/edx/base.in index 961226b2a34..2edf708bc89 100644 --- a/requirements/edx/base.in +++ b/requirements/edx/base.in @@ -82,7 +82,7 @@ edx-rest-api-client edx-search edx-submissions edx-user-state-client -edxval==0.1.17 # Pin because the newer version causes test failures. +edxval enum34==1.1.6 # Backport of Enum from Python 3.4+ event-tracking feedparser==5.1.3 diff --git a/requirements/edx/development.txt b/requirements/edx/development.txt index b758a4c30a3..0012e5d6abd 100644 --- a/requirements/edx/development.txt +++ b/requirements/edx/development.txt @@ -62,7 +62,7 @@ beautifulsoup==3.2.1 before-after==1.0.1 billiard==3.3.0.23 bleach==1.4 -bok-choy==0.8.0 +bok-choy==0.8.1 boto3==1.4.8 boto==2.39.0 botocore==1.8.17 @@ -298,7 +298,7 @@ s3transfer==0.1.13 sailthru-client==2.2.3 scipy==0.14.0 scrapy==1.1.2 -selenium==3.13.0 +selenium==3.14.0 semantic-version==2.6.0 service-identity==17.0.0 shapely==1.2.16 diff --git a/requirements/edx/testing.txt b/requirements/edx/testing.txt index 91ed0acceea..fc2a3e6cbe7 100644 --- a/requirements/edx/testing.txt +++ b/requirements/edx/testing.txt @@ -59,7 +59,7 @@ beautifulsoup==3.2.1 before-after==1.0.1 billiard==3.3.0.23 bleach==1.4 -bok-choy==0.8.0 +bok-choy==0.8.1 boto3==1.4.8 boto==2.39.0 botocore==1.8.17 @@ -287,7 +287,7 @@ s3transfer==0.1.13 sailthru-client==2.2.3 scipy==0.14.0 scrapy==1.1.2 # via pa11ycrawler -selenium==3.13.0 +selenium==3.14.0 semantic-version==2.6.0 service-identity==17.0.0 # via scrapy shapely==1.2.16 diff --git a/scripts/generic-ci-tests.sh b/scripts/generic-ci-tests.sh index 66cc9d40cb3..0deac4ba260 100755 --- a/scripts/generic-ci-tests.sh +++ b/scripts/generic-ci-tests.sh @@ -185,6 +185,7 @@ case "$TEST_SUITE" in "bok-choy") PAVER_ARGS="-n $NUMBER_OF_BOKCHOY_THREADS" + export BOKCHOY_HEADLESS=true case "$SHARD" in diff --git a/tox.ini b/tox.ini index 80cf329b78a..c0b3d9475f5 100644 --- a/tox.ini +++ b/tox.ini @@ -29,9 +29,11 @@ passenv = BOK_CHOY_CMS_PORT BOK_CHOY_HOSTNAME BOK_CHOY_LMS_PORT + BOKCHOY_HEADLESS DISPLAY EDX_PLATFORM_SETTINGS EDXAPP_TEST_MONGO_HOST + MOZ_HEADLESS NO_PREREQ_INSTALL NO_PYTHON_UNINSTALL NODE_PATH -- GitLab