summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-26 21:50:47 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-26 21:50:47 +0300
commit49fcbdbd1e0c7405c819cecedf54029b4541fcc2 (patch)
treedcbf19bc5d4e59905ab2fc3b661011ac51443704 /features
parent6c0fd9f29ad92b0f4b1cdea82a33d485622d0fd5 (diff)
downloadgitlab-ce-49fcbdbd1e0c7405c819cecedf54029b4541fcc2.tar.gz
Test user page with spinach
Diffstat (limited to 'features')
-rw-r--r--features/profile/profile.feature5
-rw-r--r--features/steps/profile/profile.rb12
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