Accessibility tests and fixes for copy_view.mako

This commit is contained in:
John Chilton
2023-05-24 13:46:31 -04:00
committed by Dannon Baker
parent 2562022302
commit c96e2cd964
3 changed files with 9 additions and 3 deletions
@@ -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()
+1 -1
View File
@@ -3,7 +3,7 @@
<% _=n_ %>
<!DOCTYPE HTML>
<html>
<html lang="en">
<!--base.mako-->
${self.init()}
<head>
@@ -54,7 +54,8 @@
<div>
<form method="post">
<div class="toolForm" style="float: left; width: 45%; padding: 0px;">
<div class="toolFormTitle">Source History:<br />
<div class="toolFormTitle">
<label for="source_history">Source History:<br /></label>
<select id="source_history" name="source_history" refresh_on_change="true" style="font-weight: normal;">
%for i, hist in enumerate(target_histories):
<%
@@ -107,6 +108,9 @@
<div class="toolFormTitle">Destination History:</div>
<div class="toolFormBody">
<div class="form-row" id="single-destination">
<label for="single-dest-select">
Chose a destination for copied items
</label>
<select id="single-dest-select" name="target_history_id">
%for i, hist in enumerate(target_histories):
<%
@@ -144,7 +148,7 @@
checked = " checked='checked'"
%>
<hr />
<div style="text-align: center; color: #888;">&mdash; OR &mdash;</div>
<div style="text-align: center; color: #666;">&mdash; OR &mdash;</div>
<div class="form-row">
<label for="new_history_name" style="display: inline; font-weight:normal;">New history named:</label>
<input id="new_history_name" type="text" name="new_history_name" />