summaryrefslogtreecommitdiff
path: root/features
diff options
context:
space:
mode:
authorFelipe Artur <fcardozo@gitlab.com>2017-07-07 15:08:49 +0000
committerSean McGivern <sean@mcgivern.me.uk>2017-07-07 15:08:49 +0000
commitb5f596c3ffb655b6e4fee127fa9336c829198b5b (patch)
tree202d725fcd56434b82c37037645f88839013ba53 /features
parent1a3edcec4363239a4d080bc9af53d9d455dccfb4 (diff)
downloadgitlab-ce-b5f596c3ffb655b6e4fee127fa9336c829198b5b.tar.gz
Native group milestones
Diffstat (limited to 'features')
-rw-r--r--features/group/milestones.feature4
-rw-r--r--features/steps/group/milestones.rb9
2 files changed, 4 insertions, 9 deletions
diff --git a/features/group/milestones.feature b/features/group/milestones.feature
index 1c1539b3e12..2211acfee20 100644
--- a/features/group/milestones.feature
+++ b/features/group/milestones.feature
@@ -22,12 +22,12 @@ Feature: Group Milestones
Then I should see group milestone with descriptions and expiry date
And I should see group milestone with all issues and MRs assigned to that milestone
- Scenario: Create multiple milestones with one form
+ Scenario: Create group milestones
Given I visit group "Owned" milestones page
And I click new milestone button
And I fill milestone name
When I press create mileston button
- Then milestone in each project should be created
+ Then group milestone should be created
Scenario: I should see Issues listed with labels
Given Group has projects with milestones
diff --git a/features/steps/group/milestones.rb b/features/steps/group/milestones.rb
index 7288dc87005..915d766dd60 100644
--- a/features/steps/group/milestones.rb
+++ b/features/steps/group/milestones.rb
@@ -54,14 +54,9 @@ class Spinach::Features::GroupMilestones < Spinach::FeatureSteps
click_button "Create milestone"
end
- step 'milestone in each project should be created' do
+ step 'group milestone should be created' do
group = Group.find_by(name: 'Owned')
- expect(page).to have_content "Milestone v2.9.0"
- expect(group.projects).to be_present
-
- group.projects.each do |project|
- expect(page).to have_content project.name
- end
+ expect(page).to have_content group.milestones.find_by_title('v2.9.0').title
end
step 'I should see the "bug" label' do