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

project_merge_requests_steps.rb « step_definitions « features - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6749773e2b5b46e1dbe8644893cae26518f5fcd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
Given /^project "(.*?)" has milestone "(.*?)"$/ do |arg1, arg2|
  project = Project.find_by_name(arg1)

  milestone = Factory :milestone,
    :title => arg2,
    :project => project

  3.times do |i|
    issue = Factory :issue,
      :project => project,
      :milestone => milestone
  end
end

Given /^I visit project "(.*?)" milestones page$/ do |arg1|
  @project = Project.find_by_name(arg1)
  visit project_milestones_path(@project)
end

Then /^I should see active milestones$/ do
  milestone = @project.milestones.first
  page.should have_content(milestone.title[0..10])
  page.should have_content(milestone.expires_at)
  page.should have_content("Browse Issues")
end

Then /^I should see milestone "(.*?)"$/ do |arg1|
  milestone = @project.milestones.find_by_title(arg1)
  page.should have_content(milestone.title[0..10])
  page.should have_content(milestone.expires_at)
  page.should have_content("Browse Issues")
end

Given /^I submit new milestone "(.*?)"$/ do |arg1|
  fill_in "milestone_title", :with => arg1
  click_button "Create milestone"
end