Fix missing "for" attribute in user segments label
Since the attribute was missing, the label wasn't correctly associated with its field.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
method: :get,
|
||||
id: "admin_download_emails" do %>
|
||||
|
||||
<label><%= t("admin.emails_download.index.download_segment") %></label>
|
||||
<%= label_tag :users_segment, t("admin.emails_download.index.download_segment") %>
|
||||
<p class="help-text" id="emails-help-text">
|
||||
<%= t("admin.emails_download.index.download_segment_help_text") %>
|
||||
</p>
|
||||
|
||||
@@ -26,7 +26,7 @@ describe "Admin download user emails" do
|
||||
visit admin_emails_download_index_path
|
||||
|
||||
within("#admin_download_emails") do
|
||||
select "Administrators", from: "users_segment"
|
||||
select "Administrators", from: "Download email addresses"
|
||||
click_button "Download emails list"
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user