2017-10-11 15:51:20 +08:00
|
|
|
Then(/^I click on Avatar$/) do
|
|
|
|
find('img.avatar').click
|
|
|
|
end
|
|
|
|
|
|
|
|
Given(/^I'm on the profile page$/) do
|
|
|
|
visit edit_user_registration_path
|
|
|
|
end
|
|
|
|
|
|
|
|
Then(/^I click on Browse button$/) do
|
|
|
|
find('input#user_avatar').click
|
2017-10-10 15:17:55 +08:00
|
|
|
end
|