From 81c720fe8fa424ab21aab63363228fd60f4a52b7 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Thu, 20 Aug 2020 14:44:27 +0300 Subject: Check the availability of datatables extension files from guix * test/requests/link_checker.py (check_packaged_js_files): Add it. * test/requests/test-website.py: Use above method. --- test/requests/link_checker.py | 21 +++++++++++++++++++++ test/requests/test-website.py | 2 ++ 2 files changed, 23 insertions(+) (limited to 'test') diff --git a/test/requests/link_checker.py b/test/requests/link_checker.py index 715f330c..0e333f43 100644 --- a/test/requests/link_checker.py +++ b/test/requests/link_checker.py @@ -79,3 +79,24 @@ 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/plugins/sorting/natural.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", + ] + + 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. -- cgit v1.2.3 From 1bd50f33e351f4e71736406e5c3846fe10f2226c Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 24 Aug 2020 23:52:17 +0300 Subject: Add check for "natural.js" in Mechanical Rob * test/requests/link_checker.py (check_packaged_file): Add it. --- test/requests/link_checker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test') diff --git a/test/requests/link_checker.py b/test/requests/link_checker.py index 0e333f43..f9f85793 100644 --- a/test/requests/link_checker.py +++ b/test/requests/link_checker.py @@ -95,6 +95,8 @@ def check_packaged_js_files(args_obj, parser): "/DataTablesExtensions/buttons/js/buttons.colVis.min.js", "/DataTables/js/jquery.dataTables.js", "/DataTablesExtensions/scroller/css/scroller.dataTables.min.css", + # natural.js [Datatables plugin] + "/DataTablesExtensions/plugins/sorting/natural.js", ] print("Checking links") -- cgit v1.2.3 From cddb7b32e31e1750191f5146836b5026b68f2bf9 Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Wed, 26 Aug 2020 00:16:53 +0300 Subject: Add check for "scientific.js" dataTables extension plugin * test/requests/link_checker.py (check_packaged_file): Add it. --- test/requests/link_checker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/requests/link_checker.py b/test/requests/link_checker.py index f9f85793..12057203 100644 --- a/test/requests/link_checker.py +++ b/test/requests/link_checker.py @@ -89,14 +89,14 @@ def check_packaged_js_files(args_obj, parser): "/DataTablesExtensions/buttons/js/dataTables.buttons.min.js", "/DataTablesExtensions/buttonStyles/css/buttons.dataTables.min.css", "/DataTablesExtensions/buttons/js/dataTables.buttons.min.js", - "/DataTablesExtensions/plugins/sorting/natural.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", - # natural.js [Datatables plugin] + # Datatables plugins: "/DataTablesExtensions/plugins/sorting/natural.js", + "/DataTablesExtensions/plugins/sorting/scientific.js", ] print("Checking links") -- cgit v1.2.3