Commit 973066e7 authored by robertd's avatar robertd

Add tests for groups avatars check on user page

parent b8e81e55
...@@ -6,6 +6,13 @@ Feature: Profile ...@@ -6,6 +6,13 @@ Feature: Profile
Given I visit profile page Given I visit profile page
Then I should see my profile info 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 Scenario: I edit profile
Given I visit profile page Given I visit profile page
Then I change my profile info Then I change my profile info
......
...@@ -173,4 +173,17 @@ class Profile < Spinach::FeatureSteps ...@@ -173,4 +173,17 @@ class Profile < Spinach::FeatureSteps
page.should have_content current_user.name page.should have_content current_user.name
end end
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 end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment