2014-02-07 16:59:55 +00:00
|
|
|
Feature: Groups
|
|
|
|
Background:
|
|
|
|
Given I sign in as "John Doe"
|
|
|
|
And "John Doe" is owner of group "Owned"
|
|
|
|
|
2016-01-27 10:23:28 +00:00
|
|
|
Scenario: I should not see a group if it does not exist
|
|
|
|
When I visit group "NonExistentGroup" page
|
|
|
|
Then page status code should be 404
|
|
|
|
|
2015-07-10 11:07:24 +00:00
|
|
|
Scenario: I should have back to group button
|
|
|
|
When I visit group "Owned" page
|
|
|
|
Then I should see back to dashboard button
|
|
|
|
|
2014-02-07 16:59:55 +00:00
|
|
|
@javascript
|
|
|
|
Scenario: I should see group "Owned" dashboard list
|
|
|
|
When I visit group "Owned" page
|
|
|
|
Then I should see group "Owned" projects list
|
2016-03-10 13:29:38 +00:00
|
|
|
|
|
|
|
@javascript
|
|
|
|
Scenario: I should see group "Owned" activity feed
|
|
|
|
When I visit group "Owned" activity page
|
2014-02-07 16:59:55 +00:00
|
|
|
And I should see projects activity feed
|
|
|
|
|
|
|
|
Scenario: I should see group "Owned" issues list
|
|
|
|
Given project from group "Owned" has issues assigned to me
|
|
|
|
When I visit group "Owned" issues page
|
|
|
|
Then I should see issues from group "Owned" assigned to me
|
|
|
|
|
2016-02-26 02:57:28 +00:00
|
|
|
Scenario: I should not see issues from archived project in "Owned" group issues list
|
|
|
|
Given Group "Owned" has archived project
|
|
|
|
And the archived project have some issues
|
|
|
|
When I visit group "Owned" issues page
|
|
|
|
Then I should not see issues from the archived project
|
|
|
|
|
2014-02-07 16:59:55 +00:00
|
|
|
Scenario: I should see group "Owned" merge requests list
|
|
|
|
Given project from group "Owned" has merge requests assigned to me
|
|
|
|
When I visit group "Owned" merge requests page
|
|
|
|
Then I should see merge requests from group "Owned" assigned to me
|
|
|
|
|
2016-02-26 03:08:45 +00:00
|
|
|
Scenario: I should not see merge requests from archived project in "Owned" group merge requests list
|
|
|
|
Given Group "Owned" has archived project
|
|
|
|
And the archived project have some merge_requests
|
|
|
|
When I visit group "Owned" merge requests page
|
|
|
|
Then I should not see merge requests from the archived project
|
|
|
|
|
2014-02-07 16:59:55 +00:00
|
|
|
Scenario: I should see edit group "Owned" page
|
|
|
|
When I visit group "Owned" settings page
|
|
|
|
And I change group "Owned" name to "new-name"
|
|
|
|
Then I should see new group "Owned" name
|
|
|
|
|
|
|
|
Scenario: I edit group "Owned" avatar
|
|
|
|
When I visit group "Owned" settings page
|
|
|
|
And I change group "Owned" avatar
|
|
|
|
And I visit group "Owned" settings page
|
|
|
|
Then I should see new group "Owned" avatar
|
|
|
|
And I should see the "Remove avatar" button
|
|
|
|
|
|
|
|
Scenario: I remove group "Owned" avatar
|
|
|
|
When I visit group "Owned" settings page
|
|
|
|
And I have group "Owned" avatar
|
|
|
|
And I visit group "Owned" settings page
|
|
|
|
And I remove group "Owned" avatar
|
|
|
|
Then I should not see group "Owned" avatar
|
|
|
|
And I should not see the "Remove avatar" button
|
|
|
|
|
2015-08-18 15:46:57 +00:00
|
|
|
# Group projects in settings
|
|
|
|
Scenario: I should see all projects in the project list in settings
|
|
|
|
Given Group "Owned" has archived project
|
|
|
|
When I visit group "Owned" projects page
|
|
|
|
Then I should see group "Owned" projects list
|
|
|
|
And I should see "archived" label
|
2015-09-04 18:40:26 +00:00
|
|
|
|
|
|
|
# Public group
|
|
|
|
@javascript
|
|
|
|
Scenario: Signed out user should see group
|
|
|
|
Given "Mary Jane" is owner of group "Owned"
|
|
|
|
And I am a signed out user
|
|
|
|
And Group "Owned" has a public project "Public-project"
|
|
|
|
When I visit group "Owned" page
|
|
|
|
Then I should see group "Owned"
|
|
|
|
Then I should see project "Public-project"
|
2015-11-13 15:07:27 +00:00
|
|
|
|