Commit f3047975d33768416174e3a7efe4f657f44fbdae

Authored by Leandro Nunes dos Santos
Committed by Rodrigo Souto
1 parent e4b374d1

fill the correct username and password field in cucumber tests with selenium

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
features/step_definitions/noosfero_steps.rb
@@ -287,8 +287,8 @@ end @@ -287,8 +287,8 @@ end
287 Given /^I am logged in as "(.+)"$/ do |username| 287 Given /^I am logged in as "(.+)"$/ do |username|
288 Given %{I go to logout page} 288 Given %{I go to logout page}
289 And %{I go to login page} 289 And %{I go to login page}
290 - And %{I fill in "Username" with "#{username}"}  
291 - And %{I fill in "Password" with "123456"} 290 + And %{I fill in "main_user_login" with "#{username}"}
  291 + And %{I fill in "user_password" with "123456"}
292 When %{I press "Log in"} 292 When %{I press "Log in"}
293 # FIXME: 293 # FIXME:
294 # deveria apenas verificar que esta no myprofile do usuario 294 # deveria apenas verificar que esta no myprofile do usuario