Sha256: 27ce938979280742a4d0cc020ff05876c011cc9851a1589a3923201e02f9bb04

Contents?: true

Size: 830 Bytes

Versions: 25

Compression:

Stored size: 830 Bytes

Contents

Then /^I should( not)? see the scope "([^"]*)"( selected)?$/ do |negate, name, selected|
  should = "I should#{' not' if negate}"
  scope = ".scopes#{' .selected' if selected}"
  step %{#{should} see "#{name}" within "#{scope}"}
end

Then /^I should see the scope "([^"]*)" not selected$/ do |name|
  step %{I should see the scope "#{name}"}
  expect(page).to_not have_css '.scopes .selected', text: name
end

Then /^I should see the scope "([^"]*)" with the count (\d+)$/ do |name, count|
  name = name.tr(' ','').underscore.downcase
  step %{I should see "#{count}" within ".scopes .#{name} .count"}
end

Then /^I should see the scope "([^"]*)" with no count$/ do |name|
  name = name.tr(" ", "").underscore.downcase
  expect(page).to     have_css ".scopes .#{name}"
  expect(page).to_not have_css ".scopes .#{name} .count"
end

Version data entries

25 entries across 25 versions & 4 rubygems

Version Path
activeadmin_addons-1.1.2 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/index_scope_steps.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.17.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.16.pre features/step_definitions/index_scope_steps.rb
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/index_scope_steps.rb
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/index_scope_steps.rb
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.15.pre features/step_definitions/index_scope_steps.rb
activeadmin-orac-1.0.0.pre4 features/step_definitions/index_scope_steps.rb
activeadmin-orac-1.0.0 features/step_definitions/index_scope_steps.rb
activeadmin-orac-1.0.0.pre.orac features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.14.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.13.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.12.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.11.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.10.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.9.pre features/step_definitions/index_scope_steps.rb
yousty-activeadmin-1.0.8.pre features/step_definitions/index_scope_steps.rb
activeadmin-1.0.0.pre4 features/step_definitions/index_scope_steps.rb
activeadmin-1.0.0.pre3 features/step_definitions/index_scope_steps.rb