Commit c39004424783a31081c5a8c1b1e4659d861c65de
1 parent
67147db3
Exists in
master
and in
29 other branches
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,6 +262,7 @@ Given /^I am logged in as "(.+)"$/ do |username| | ||
262 | selenium.wait_for_page | 262 | selenium.wait_for_page |
263 | end | 263 | end |
264 | Then "I should be logged in as \"#{username}\"" | 264 | Then "I should be logged in as \"#{username}\"" |
265 | + @current_user = username | ||
265 | end | 266 | end |
266 | 267 | ||
267 | Given /^I am logged in as admin$/ do | 268 | Given /^I am logged in as admin$/ do |
@@ -566,3 +567,8 @@ Given /^([^\s]+) (enabled|disabled) translation redirection in (?:his|her) profi | @@ -566,3 +567,8 @@ Given /^([^\s]+) (enabled|disabled) translation redirection in (?:his|her) profi | ||
566 | profile.redirect_l10n = ( status == "enabled" ) | 567 | profile.redirect_l10n = ( status == "enabled" ) |
567 | profile.save | 568 | profile.save |
568 | end | 569 | end |
570 | + | ||
571 | +When /^I edit my profile$/ do | ||
572 | + visit "/myprofile/#{@current_user}" | ||
573 | + click_link "Edit Profile" | ||
574 | +end |