diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-07-05 11:20:01 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-07-05 16:17:05 +0300 |
commit | 7facedfb19555cd9685a79c315871355fab2d095 (patch) | |
tree | 1af6eece0ee82730d2956b303ebcfd4a4f936e1e /features | |
parent | bca47688d4e1348875c3c8bd6c647d5de264dc7e (diff) | |
download | gitlab-ce-7facedfb19555cd9685a79c315871355fab2d095.tar.gz |
Fix profile test to click on header user profile link
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'features')
-rw-r--r-- | features/steps/profile/profile.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb index 9e5602dacf1..4ee6784a086 100644 --- a/features/steps/profile/profile.rb +++ b/features/steps/profile/profile.rb @@ -155,8 +155,11 @@ class Spinach::Features::Profile < Spinach::FeatureSteps end step 'I click on my profile picture' do - find(:css, '.side-nav-toggle').click - find(:css, '.sidebar-user').click + find(:css, '.header-user-dropdown-toggle').click + + page.within ".header-user" do + click_link "Profile" + end end step 'I should see my user page' do |