aboutsummaryrefslogtreecommitdiffstats
path: root/spec/features
diff options
context:
space:
mode:
authorRobert2017-12-07 08:08:11 +0100
committerRobert2017-12-07 20:53:43 +0100
commitb07c6d9c198c9417981a143b04698ff52db91024 (patch)
treec7a900c4dc0f663b04c74548a15296773bd88c25 /spec/features
parent0bb71d8146126f4f2c53ca0c7145f0e7d5eaeda5 (diff)
downloadchouette-core-b07c6d9c198c9417981a143b04698ff52db91024.tar.bz2
Refs: #5198@1.5h; Specing the presence of the Modal Action Box
- verifying the visibility of the action box - no dynamic behavior of the action box is verified (yet?) - would need javascript execution - refactoring suggestions --> https://projects.af83.io/issues/5206
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/routes_permissions_spec.rb3
-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.rb29
-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