diff --git a/app/views/layouts/_head_panel.html.haml b/app/views/layouts/_head_panel.html.haml index f0b001f..e595288 100644 --- a/app/views/layouts/_head_panel.html.haml +++ b/app/views/layouts/_head_panel.html.haml @@ -36,6 +36,6 @@ = link_to destroy_user_session_path, class: "logout", method: :delete, title: "Logout", class: 'has_bottom_tooltip', 'data-original-title' => 'Logout' do %i.icon-signout %li - = link_to current_user, class: "profile-pic" do + = link_to current_user, class: "profile-pic", id: 'profile-pic' do = image_tag gravatar_icon(current_user.email, 26) diff --git a/features/profile/profile.feature b/features/profile/profile.feature index 6d3dd78..53a93b0 100644 --- a/features/profile/profile.feature +++ b/features/profile/profile.feature @@ -38,6 +38,11 @@ Feature: Profile When I visit profile history page Then I should see my activity + Scenario: I visit my user page + When I visit profile page + And I click on my profile picture + Then I should see my user page + @javascript Scenario: I change my application theme Given I visit profile design page diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb index 4c33fb7..5ff4e8a 100644 --- a/features/steps/profile/profile.rb +++ b/features/steps/profile/profile.rb @@ -104,4 +104,16 @@ class Profile < Spinach::FeatureSteps step 'I redirected to sign in page' do current_path.should == new_user_session_path end + + step 'I click on my profile picture' do + click_link 'profile-pic' + end + + step 'I should see my user page' do + page.should have_content "User Activity" + + within '.navbar-gitlab' do + page.should have_content current_user.name + end + end end -- libgit2 0.21.2