Commit 4a505f38 authored by Marin Jankovski's avatar Marin Jankovski

Update the tests with milestones descriptions.

parent 0f80ffdf
......@@ -121,6 +121,7 @@ Feature: Groups
Then I should see user "Mary Jane" in team list
Then I should not see user "John Doe" in team list
# Group milestones
Scenario: I should see group "Owned" milestone index page with no milestones
When I visit group "Owned" page
......@@ -138,4 +139,5 @@ Feature: Groups
When I visit group "Owned" page
And I click on group milestones
And I click on one group milestone
Then I should see group milestone with all issues and MRs assigned to that milestone
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
......@@ -187,6 +187,12 @@ class Groups < Spinach::FeatureSteps
click_link 'GL-113'
end
step 'I should see group milestone with descriptions and expiry date' do
page.should have_content('Lorem Ipsum is simply dummy text of the printing and typesetting industry')
page.should have_content('expires at Aug 20, 2014')
page.should have_content('Project milestone has no description')
end
step 'I should see group milestone with all issues and MRs assigned to that milestone' do
page.should have_content('Milestone GL-113')
page.should have_content('Progress: 0 closed – 4 open')
......@@ -232,7 +238,9 @@ class Groups < Spinach::FeatureSteps
project: project2
milestone2_project3 = create :milestone,
title: "GL-113",
project: @project3
project: @project3,
due_date: '2014-08-20',
description: 'Lorem Ipsum is simply dummy text of the printing and typesetting industry'
@issue1 = create :issue,
project: @project1,
assignee: current_user,
......
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