Skip to content
Extraits de code Groupes Projets
Valider 9baf7ff1 rédigé par Sarah Mei's avatar Sarah Mei
Parcourir les fichiers

Merge branch 'integration_test_1#' of https://github.com/jairodiaz/diaspora...

Merge branch 'integration_test_1#' of https://github.com/jairodiaz/diaspora into jairodiaz-integration_test_1#
parents d3eb4638 d0c1c087
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
@javascript
Feature: Change password
Scenario: Change my password
Given I am signed in
And I click on my name in the header
And I follow "account settings"
Then I should be on my account settings page
When I fill in "user_password" with "newsecret"
And I fill in "user_password_confirmation" with "newsecret"
And I press "Change Password"
Then I should see "Password Changed"
And I click on my name in the header
And I follow "logout"
Then I should be on the home page
And I sign in with password "newsecret"
Then I should be on the aspects page
\ No newline at end of file
......@@ -24,3 +24,9 @@ When /^I sign in as "([^"]*)"$/ do |email|
@me.password ||= 'password'
Given 'I am signed in'
end
When /^I sign in with password "([^"]*)"$/ do |password|
@me.password = password
Given 'I am signed in'
end
......@@ -15,6 +15,8 @@ module NavigationHelpers
person_path(Request.to(@me).first.from)
when /^"([^\"]*)"'s page$/
person_path(User.find_by_email($1).person)
when /^my account settings page$/
edit_user_path(@me)
when /^"(\/.*)"/
$1
else
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter