Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-26 05:57:28 +0300
committerRubén Dávila <rdavila84@gmail.com>2016-03-02 20:51:29 +0300
commit0b86b46a2c0eeaa397d2dccb49bf51d096ac12c6 (patch)
tree79beec1803df5116f0759383e42158dcc0899b2a /features
parent6aa50165b0acc355925e271f07ef8e87291e0232 (diff)
Don't list issues from archived projects in Group view.
Diffstat (limited to 'features')
-rw-r--r--features/groups.feature6
-rw-r--r--features/steps/groups.rb15
2 files changed, 20 insertions, 1 deletions
diff --git a/features/groups.feature b/features/groups.feature
index 55fffb012ae..4f9c28f813c 100644
--- a/features/groups.feature
+++ b/features/groups.feature
@@ -22,6 +22,12 @@ Feature: Groups
When I visit group "Owned" issues page
Then I should see issues from group "Owned" assigned to me
+ 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
+
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
diff --git a/features/steps/groups.rb b/features/steps/groups.rb
index 1e2a78a6029..b0ec402531b 100644
--- a/features/steps/groups.rb
+++ b/features/steps/groups.rb
@@ -44,6 +44,12 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
end
end
+ step 'I should not see issues from the archived project' do
+ @archived_project.issues.each do |issue|
+ expect(page).not_to have_content issue.title
+ end
+ end
+
step 'I should see merge requests from group "Owned" assigned to me' do
assigned_to_me(:merge_requests).each do |issue|
expect(page).to have_content issue.title[0..80]
@@ -113,7 +119,7 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
step 'Group "Owned" has archived project' do
group = Group.find_by(name: 'Owned')
- create(:project, namespace: group, archived: true, path: "archived-project")
+ @archived_project = create(:project, namespace: group, archived: true, path: "archived-project")
end
step 'I should see "archived" label' do
@@ -124,6 +130,13 @@ class Spinach::Features::Groups < Spinach::FeatureSteps
visit group_path(-1)
end
+ step 'the archived project have some issues' do
+ create :issue,
+ project: @archived_project,
+ assignee: current_user,
+ author: current_user
+ end
+
private
def assigned_to_me(key)