diff options
| author | Robert | 2017-12-06 18:44:53 +0100 | 
|---|---|---|
| committer | Robert | 2017-12-11 10:12:33 +0100 | 
| commit | 9ab9c3e09556cd68e459b090f59b8298d75cc9ec (patch) | |
| tree | 4bbae2a174b067f36e5a83afaf400541178e4f6b | |
| parent | 406d99df9824d7d7dda72b3cc47504840324251c (diff) | |
| download | chouette-core-9ab9c3e09556cd68e459b090f59b8298d75cc9ec.tar.bz2 | |
Refs: #5197@0.5h; Passing specs added
| -rw-r--r-- | spec/features/compliance_control_sets_spec.rb | 10 | 
1 files changed, 10 insertions, 0 deletions
| diff --git a/spec/features/compliance_control_sets_spec.rb b/spec/features/compliance_control_sets_spec.rb index 64125a577..f4d6d1d5d 100644 --- a/spec/features/compliance_control_sets_spec.rb +++ b/spec/features/compliance_control_sets_spec.rb @@ -22,6 +22,9 @@ RSpec.describe "ComplianceControlSets", type: :feature do    end    describe 'show' do +    let( :control_button_href ){ select_type_compliance_control_set_compliance_controls_path(control_set) } +    let( :new_group_button_href ) { new_compliance_control_set_compliance_control_block_path(control_set) } +      before do        visit compliance_control_set_path( control_set )      end @@ -41,6 +44,13 @@ RSpec.describe "ComplianceControlSets", type: :feature do        controls.each do | control |          expect( page ).to have_content(control.code)        end + +      # Floating Buttons +      within '.select_toolbox' 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 +            end      it 'we can apply a severity filter' do | 
