diff options
Diffstat (limited to 'spec/features')
| -rw-r--r-- | spec/features/routes_permissions_spec.rb | 3 | ||||
| -rw-r--r-- | spec/features/workbenches/workbenches_permissions_spec.rb (renamed from spec/features/workbenches_permissions_spec.rb) | 0 | ||||
| -rw-r--r-- | spec/features/workbenches/workbenches_show_modal_actions_spec.rb | 29 | ||||
| -rw-r--r-- | spec/features/workbenches/workbenches_show_spec.rb (renamed from spec/features/workbenches_spec.rb) | 0 | 
4 files changed, 29 insertions, 3 deletions
| diff --git a/spec/features/routes_permissions_spec.rb b/spec/features/routes_permissions_spec.rb index 36c13b24a..6d3db9d55 100644 --- a/spec/features/routes_permissions_spec.rb +++ b/spec/features/routes_permissions_spec.rb @@ -1,6 +1,3 @@ -# -*- coding: utf-8 -*- -require 'spec_helper' -  describe "Routes", :type => :feature do    login_user diff --git a/spec/features/workbenches_permissions_spec.rb b/spec/features/workbenches/workbenches_permissions_spec.rb index d58293538..d58293538 100644 --- a/spec/features/workbenches_permissions_spec.rb +++ b/spec/features/workbenches/workbenches_permissions_spec.rb diff --git a/spec/features/workbenches/workbenches_show_modal_actions_spec.rb b/spec/features/workbenches/workbenches_show_modal_actions_spec.rb new file mode 100644 index 000000000..ebc48b485 --- /dev/null +++ b/spec/features/workbenches/workbenches_show_modal_actions_spec.rb @@ -0,0 +1,29 @@ +RSpec.describe 'Workbenches', type: :feature do +  login_user + +  let(:line_ref) { create :line_referential } +  let(:line) { create :line, line_referential: line_ref } +  let(:ref_metadata) { create(:referential_metadata, lines: [line]) } + +  let(:workbench) { create :workbench, line_referential: line_ref, organisation: @user.organisation } +  let!(:referential) { create :workbench_referential, +                              workbench: workbench, +                              metadatas: [ref_metadata], +                              organisation: @user.organisation } +   + +  describe 'show' do +    context 'modal action' do +      it 'expected behavior' do +        visit workbench_path(workbench) +       +        # Modal Action Box: is present +        within( :css, ".select_toolbox#selected-referentials-action-box span.info-msg > span") do +          expect( page ).to have_content("0") +        end +         +      end +    end +  end + +end diff --git a/spec/features/workbenches_spec.rb b/spec/features/workbenches/workbenches_show_spec.rb index f1151a67b..f1151a67b 100644 --- a/spec/features/workbenches_spec.rb +++ b/spec/features/workbenches/workbenches_show_spec.rb | 
