Commit c39004424783a31081c5a8c1b1e4659d861c65de

Authored by Antonio Terceiro
1 parent 67147db3

Add single step for editing user profiles

Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
features/step_definitions/noosfero_steps.rb
... ... @@ -262,6 +262,7 @@ Given /^I am logged in as "(.+)"$/ do |username|
262 262 selenium.wait_for_page
263 263 end
264 264 Then "I should be logged in as \"#{username}\""
  265 + @current_user = username
265 266 end
266 267  
267 268 Given /^I am logged in as admin$/ do
... ... @@ -566,3 +567,8 @@ Given /^([^\s]+) (enabled|disabled) translation redirection in (?:his|her) profi
566 567 profile.redirect_l10n = ( status == "enabled" )
567 568 profile.save
568 569 end
  570 +
  571 +When /^I edit my profile$/ do
  572 + visit "/myprofile/#{@current_user}"
  573 + click_link "Edit Profile"
  574 +end
... ...