diff options
author | robertd <robert.djurasaj@gmail.com> | 2014-02-07 22:45:46 -0700 |
---|---|---|
committer | robertd <robert.djurasaj@gmail.com> | 2014-02-07 22:45:46 -0700 |
commit | 973066e76dac1f6dae6c5356420abba7cb589462 (patch) | |
tree | cb422e41152c4dd26c3ed3ebc30d1d0979cc5654 /features | |
parent | b8e81e558f4387b4ab4fed6594594ac29a7adec2 (diff) | |
download | gitlab-ce-973066e76dac1f6dae6c5356420abba7cb589462.tar.gz |
Add tests for groups avatars check on user page
Diffstat (limited to 'features')
-rw-r--r-- | features/profile/profile.feature | 7 | ||||
-rw-r--r-- | features/steps/profile/profile.rb | 13 |
2 files changed, 20 insertions, 0 deletions
diff --git a/features/profile/profile.feature b/features/profile/profile.feature index 8b6ee6fd67f..44bb190f624 100644 --- a/features/profile/profile.feature +++ b/features/profile/profile.feature @@ -6,6 +6,13 @@ Feature: Profile Given I visit profile page Then I should see my profile info + Scenario: I can see groups I belong to + Given I have group with projects + When I visit profile page + And I click on my profile picture + Then I should see my user page + And I should see groups I belong to + Scenario: I edit profile Given I visit profile page Then I change my profile info diff --git a/features/steps/profile/profile.rb b/features/steps/profile/profile.rb index 33ae6c72998..879bcf41b40 100644 --- a/features/steps/profile/profile.rb +++ b/features/steps/profile/profile.rb @@ -173,4 +173,17 @@ class Profile < Spinach::FeatureSteps page.should have_content current_user.name end end + + step 'I have group with projects' do + @group = create(:group) + @group.add_owner(current_user) + @project = create(:project, namespace: @group) + @event = create(:closed_issue_event, project: @project) + + @project.team << [current_user, :master] + end + + step 'I should see groups I belong to' do + page.should have_css('.profile-groups-avatars', visible: true) + end end |