Sha256: 732a044b5b0192a53f565a27e3b6188feaf3ae95791ee32415c6c84bf35dea57

Contents?: true

Size: 554 Bytes

Versions: 25

Compression:

Stored size: 554 Bytes

Contents

Then /^I should see a sidebar titled "([^"]*)"$/ do |title|
  expect(page).to have_css '.sidebar_section h3', text: title
end

Then /^I should not see a sidebar titled "([^"]*)"$/ do |title|
  title = title.tr(' ', '').underscore
  sidebars = page.all :css, "##{title}_sidebar_section"
  expect(sidebars.count).to eq 0
end

Then(/^I should see a sidebar titled "(.*?)" above sidebar titled "(.*?)"$/) do |top_title, bottom_title|
  expect(page).to have_css %Q(.sidebar_section:contains('#{top_title}') + .sidebar_section:contains('#{bottom_title}'))
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/sidebar_steps.rb
activeadmin_addons-1.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.17.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.16.pre features/step_definitions/sidebar_steps.rb
activeadmin_addons-1.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/sidebar_steps.rb
activeadmin_addons-1.0.1 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/sidebar_steps.rb
activeadmin_addons-1.0.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-a5a53c3f2b8f/features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.15.pre features/step_definitions/sidebar_steps.rb
activeadmin-orac-1.0.0.pre4 features/step_definitions/sidebar_steps.rb
activeadmin-orac-1.0.0 features/step_definitions/sidebar_steps.rb
activeadmin-orac-1.0.0.pre.orac features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.14.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.13.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.12.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.11.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.10.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.9.pre features/step_definitions/sidebar_steps.rb
yousty-activeadmin-1.0.8.pre features/step_definitions/sidebar_steps.rb
activeadmin-1.0.0.pre4 features/step_definitions/sidebar_steps.rb
activeadmin-1.0.0.pre3 features/step_definitions/sidebar_steps.rb