Sha256: 4c36800ea4c88ddcec8e0621301c10c8390cdc8581a895ba17dc0d080cf756a0

Contents?: true

Size: 1.3 KB

Versions: 46

Compression:

Stored size: 1.3 KB

Contents

Then /^I should see the scope "([^"]*)"$/ do |name|
  step %{I should see "#{name}" within ".scopes"}
end

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

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

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

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

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

Then /^I should see (\d+) ([\w]*) in the table$/ do |count, resource_type|
  begin
    page.should have_css("table#index_table_#{resource_type} tr > td:first", :count => count.to_i)
  rescue
    current_count = 0

    all("table#index_table_#{resource_type} tr > td:first").each { current_count += 1 }

    raise "There were #{current_count} rows in the table not #{count}"
  end
end

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
lalala-4.0.0.dev.141 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.136 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.135 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.134 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.133 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.132 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.131 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.129 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.128 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.126 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.125 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.124 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.123 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.118 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.116 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.114 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.113 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.111 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.109 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb
lalala-4.0.0.dev.107 vendor/deps/active_admin/features/step_definitions/index_scope_steps.rb