Sha256: 346875394bf616fa7c57bd3f0543d521868af9b7cf3964a015e0a1b5d5d1f27a

Contents?: true

Size: 1.63 KB

Versions: 37

Compression:

Stored size: 1.63 KB

Contents

Then /^I should see the role dropdown on the "([^"]*)"$/ do |user|
  find(:css, "#site_memberships_input div.entry[data-role=#{user}] select").should be_present
end

Then /^I should see the role dropdown on the "([^"]*)" without the "([^"]*)" option$/ do |user, option|
  find(:css, "#site_memberships_input div.entry[data-role=#{user}] select").text.should_not include option
end

Then /^I should see the role dropdown on myself$/ do
  step %{I should see the role dropdown on the "#{@member.role}"}
end

Then /^I should not see the role dropdown on the "([^"]*)"$/ do |user|
  page.has_css?("#site_memberships_input div.entry[data-role=#{user}] select").should be_false
end

Then /^I should not see the role dropdown on myself$/ do
  step %{I should not see the role dropdown on the "#{@member.role}"}
end

Then /^I should not see any role dropdowns$/ do
  page.has_css?('#site_memberships_input div.entry select').should be_false
end

Then /^I should see delete on the "([^"]*)"$/ do |role|
  page.has_css?("#site_memberships_input div.entry[data-role=#{role}] .actions a.remove").should be_true
end

Then /^I should not see delete on the "([^"]*)"$/ do |role|
  page.has_css?("#site_memberships_input div.entry[data-role=#{role}] .actions a.remove").should be_false
end

Then /^I should not see delete on myself$/ do
  step %{I should not see delete on the "#{@member.role}"}
end

Then /^I should not see any delete buttons$/ do
 page.has_css?('#site_memberships_input div.entry .actions a.remove').should be_false
end

When /^I select the "([^"]*)" role for the "author" user/ do |role|
  step %{I select "#{role}" from "site[memberships_attributes][2][role]"}
end

Version data entries

37 entries across 37 versions & 2 rubygems

Version Path
locomotivecms-3.0.0.rc3 features/step_definitions/current_site_steps.rb
locomotivecms-3.0.0.rc2 features/step_definitions/current_site_steps.rb
locomotivecms-3.0.0.rc1 features/step_definitions/current_site_steps.rb
locomotivecms-3.0.0.pre.beta.1 features/step_definitions/current_site_steps.rb
locomotivecms-3.0.0.pre.alpha.3 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.7 features/step_definitions/current_site_steps.rb
locomotivecms-3.0.0.pre.alpha.2 features/step_definitions/current_site_steps.rb
locomotivecms-3.0.0.pre.alpha features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.6 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.6.rc2 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.6.rc1 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.5 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.4 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.3 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.2 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.1 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.0 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.0.rc3 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.0.rc2 features/step_definitions/current_site_steps.rb
locomotive_cms-2.5.0.rc1 features/step_definitions/current_site_steps.rb