diff options
| -rw-r--r-- | app/helpers/compliance_control_sets_helper.rb | 4 | ||||
| -rw-r--r-- | app/views/compliance_control_sets/show.html.slim | 2 | ||||
| -rw-r--r-- | spec/features/compliance_control_sets_spec.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/compliance_control_sets_helper.rb b/app/helpers/compliance_control_sets_helper.rb index 04dfe1f51..a8d2f79d3 100644 --- a/app/helpers/compliance_control_sets_helper.rb +++ b/app/helpers/compliance_control_sets_helper.rb @@ -4,10 +4,10 @@ module ComplianceControlSetsHelper [current_organisation, Organisation.find_by_name("STIF")].uniq end - def floated_links ccs_id + def floating_links ccs_id links = [new_control(ccs_id), new_block(ccs_id)] if links.any? - content_tag :div, class: 'select_toolbox' do + content_tag :div, class: 'select_toolbox', id: 'floating-links' do content_tag :ul do links.collect {|link| concat content_tag(:li, link, class: 'st_action with_text') if link} end diff --git a/app/views/compliance_control_sets/show.html.slim b/app/views/compliance_control_sets/show.html.slim index 9cbf8acdf..851a4a41a 100644 --- a/app/views/compliance_control_sets/show.html.slim +++ b/app/views/compliance_control_sets/show.html.slim @@ -46,4 +46,4 @@ .col-lg-12 = replacement_msg t('compliance_controls.search_no_results') - = floated_links @compliance_control_set.id + = floating_links @compliance_control_set.id diff --git a/spec/features/compliance_control_sets_spec.rb b/spec/features/compliance_control_sets_spec.rb index f4d6d1d5d..36dc5c2a9 100644 --- a/spec/features/compliance_control_sets_spec.rb +++ b/spec/features/compliance_control_sets_spec.rb @@ -46,7 +46,7 @@ RSpec.describe "ComplianceControlSets", type: :feature do end # Floating Buttons - within '.select_toolbox' do + within '.select_toolbox#floating-links' do expect( page ).to have_link("ContrĂ´le", href: control_button_href) expect( page ).to have_link("Groupe de contrĂ´les", href: new_group_button_href) end |
