aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/requests/link_checker.py23
-rwxr-xr-xtest/requests/test-website.py2
2 files changed, 25 insertions, 0 deletions
diff --git a/test/requests/link_checker.py b/test/requests/link_checker.py
index fa70747d..5e16a5cd 100644
--- a/test/requests/link_checker.py
+++ b/test/requests/link_checker.py
@@ -76,3 +76,26 @@ def check_links(args_obj, parser):
check_page(
host,
host+"/show_trait?trait_id=1435395_s_at&dataset=HC_M2_0606_P")
+
+
+def check_packaged_js_files(args_obj, parser):
+ host = args_obj.host
+ js_files = [
+ # Datatables Extensions:
+ "/DataTablesExtensions/buttonsBootstrap/css/buttons.bootstrap.css",
+ "/DataTablesExtensions/buttons/js/dataTables.buttons.min.js",
+ "/DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css",
+ "/DataTablesExtensions/buttons/js/dataTables.buttons.min.js",
+ "/DataTablesExtensions/colResize/dataTables.colResize.js",
+ "/DataTablesExtensions/colReorder/js/dataTables.colReorder.js",
+ "/DataTablesExtensions/buttons/js/buttons.colVis.min.js",
+ "/DataTables/js/jquery.dataTables.js",
+ "/DataTablesExtensions/scroller/css/scroller.dataTables.min.css",
+ # Datatables plugins:
+ "/DataTablesExtensions/plugins/sorting/natural.js",
+ "/DataTablesExtensions/plugins/sorting/scientific.js",
+ ]
+
+ print("Checking links")
+ for link in js_files:
+ verify_link(host+link)
diff --git a/test/requests/test-website.py b/test/requests/test-website.py
index 74057e7f..f90d1843 100755
--- a/test/requests/test-website.py
+++ b/test/requests/test-website.py
@@ -6,6 +6,7 @@
from __future__ import print_function
import argparse
from link_checker import check_links
+from link_checker import check_packaged_js_files
from mapping_tests import check_mapping
from navigation_tests import check_navigation
from main_web_functionality import check_main_web_functionality
@@ -30,6 +31,7 @@ def run_all(args_obj, parser):
link_checker.DO_FAIL = args_obj.fail
check_main_web_functionality(args_obj, parser)
check_links(args_obj, parser)
+ check_packaged_js_files(args_obj, parser)
check_mapping(args_obj, parser)
# TODO: Add other functions as they are created.