Sha256: 3febedfbaecbd39af0750b4ff9f639c75458355c946d59ae4d981aef03aaee75

Contents?: true

Size: 818 Bytes

Versions: 59

Compression:

Stored size: 818 Bytes

Contents

When(/^he goes to the users section$/) do
  visit dorsale.users_path
end

When(/^he creates a new user$/) do
  find("[href$='users/new']").click
  fill_in "user_email", with: "toto@toto.fr"
  find("[type=submit]").click
end

Then(/^the user is visible in the user list$/) do
  expect(page).to have_content I18n.t("messages.users.create_ok")
  expect(page).to have_content "toto@toto.fr"
end

When(/^he click on update user button$/) do
  expect(page).to have_content @user.email
  find("#main [href$=edit]").click
end

When(/^he update the user$/) do
  fill_in "user_email", with: "toto@toto.fr"
  find("[type=submit]").click
end

Then(/^the user's new informations are visible in the users list$/) do
  expect(page).to have_content I18n.t("messages.users.update_ok")
  expect(page).to have_content "toto@toto.fr"
end

Version data entries

59 entries across 59 versions & 1 rubygems

Version Path
dorsale-4.0.0 features/step_definitions/users_management_step.rb
dorsale-3.20.0 features/step_definitions/users_management_step.rb
dorsale-3.19.1 features/step_definitions/users_management_step.rb
dorsale-3.19.0 features/step_definitions/users_management_step.rb
dorsale-3.18.0 features/step_definitions/users_management_step.rb
dorsale-3.17.0 features/step_definitions/users_management_step.rb
dorsale-3.16.0 features/step_definitions/users_management_step.rb
dorsale-3.15.0 features/step_definitions/users_management_step.rb
dorsale-3.14.11 features/step_definitions/users_management_step.rb
dorsale-3.14.10 features/step_definitions/users_management_step.rb
dorsale-3.14.9 features/step_definitions/users_management_step.rb
dorsale-3.14.8 features/step_definitions/users_management_step.rb
dorsale-3.14.7 features/step_definitions/users_management_step.rb
dorsale-3.14.6 features/step_definitions/users_management_step.rb
dorsale-3.14.5 features/step_definitions/users_management_step.rb
dorsale-3.14.3 features/step_definitions/users_management_step.rb
dorsale-3.14.2 features/step_definitions/users_management_step.rb
dorsale-3.14.1 features/step_definitions/users_management_step.rb
dorsale-3.14.0 features/step_definitions/users_management_step.rb
dorsale-3.13.0 features/step_definitions/users_management_step.rb