From c96e2cd964babcee90a48f8352b93289bf08d8c4 Mon Sep 17 00:00:00 2001 From: John Chilton Date: Wed, 24 May 2023 13:46:31 -0400 Subject: [PATCH] Accessibility tests and fixes for copy_view.mako --- lib/galaxy_test/selenium/test_history_copy_elements.py | 2 ++ templates/base.mako | 2 +- templates/webapps/galaxy/dataset/copy_view.mako | 8 ++++++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lib/galaxy_test/selenium/test_history_copy_elements.py b/lib/galaxy_test/selenium/test_history_copy_elements.py index 3c5acf9a404..0139c411d9a 100644 --- a/lib/galaxy_test/selenium/test_history_copy_elements.py +++ b/lib/galaxy_test/selenium/test_history_copy_elements.py @@ -24,6 +24,8 @@ class TestHistoryCopyElements(SeleniumTestCase): self.history_panel_click_copy_elements() with self.main_panel(): + axe_results = self.axe_eval() + axe_results.assert_no_violations_with_impact_of_at_least("serious") self.components.history_copy_elements.collection_checkbox(id=input_collection["id"]).wait_for_and_click() self.components.history_copy_elements.collection_checkbox(id=failed_collection["id"]).wait_for_and_click() diff --git a/templates/base.mako b/templates/base.mako index 1e478450bd3..1207447652d 100644 --- a/templates/base.mako +++ b/templates/base.mako @@ -3,7 +3,7 @@ <% _=n_ %> - + ${self.init()} diff --git a/templates/webapps/galaxy/dataset/copy_view.mako b/templates/webapps/galaxy/dataset/copy_view.mako index c367cce9004..a13c79ccea8 100644 --- a/templates/webapps/galaxy/dataset/copy_view.mako +++ b/templates/webapps/galaxy/dataset/copy_view.mako @@ -54,7 +54,8 @@
-
Source History:
+
+ %for i, hist in enumerate(target_histories): <% @@ -144,7 +148,7 @@ checked = " checked='checked'" %>
-
— OR —
+
— OR —