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 11:20:01 +0300 |
commit | ba128f1d6e9aecb524235f1ffcb8c36eefd12ec1 (patch) | |
tree | d3fbb1771a65aabf5b783e4f2b88c5a53e69d008 | |
parent | fa5b045f650e747a42cc7c60ec3073d89efc5025 (diff) | |
download | gitlab-ce-ba128f1d6e9aecb524235f1ffcb8c36eefd12ec1.tar.gz |
Fix profile test to click on header user profile link
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r-- | app/assets/stylesheets/framework/sidebar.scss | 2 | ||||
-rw-r--r-- | features/steps/profile/profile.rb | 7 |
2 files changed, 6 insertions, 3 deletions
diff --git a/app/assets/stylesheets/framework/sidebar.scss b/app/assets/stylesheets/framework/sidebar.scss index ff35786b1a5..188823054fd 100644 --- a/app/assets/stylesheets/framework/sidebar.scss +++ b/app/assets/stylesheets/framework/sidebar.scss @@ -43,7 +43,7 @@ .nav-sidebar { position: absolute; top: 50px; - bottom: 0px; + bottom: 0; width: $sidebar_width; overflow-y: auto; overflow-x: hidden; 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 |