diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-26 21:50:47 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-06-26 21:50:47 +0300 |
commit | 49fcbdbd1e0c7405c819cecedf54029b4541fcc2 (patch) | |
tree | dcbf19bc5d4e59905ab2fc3b661011ac51443704 /features | |
parent | 6c0fd9f29ad92b0f4b1cdea82a33d485622d0fd5 (diff) | |
download | gitlab-ce-49fcbdbd1e0c7405c819cecedf54029b4541fcc2.tar.gz |
Test user page with spinach
Diffstat (limited to 'features')
-rw-r--r-- | features/profile/profile.feature | 5 | ||||
-rw-r--r-- | features/steps/profile/profile.rb | 12 |
2 files changed, 17 insertions, 0 deletions
diff --git a/features/profile/profile.feature b/features/profile/profile.feature index 6d3dd7841fd..53a93b0f908 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 4c33fb7f9fc..5ff4e8af1cd 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 |