Commit ee9a6d7f authored by Phil Hughes's avatar Phil Hughes

Fixed failing milestone filter tests

parent 8d7e0f0b
require 'rails_helper'
feature 'Issue filtering by Milestone', feature: true do
include Select2Helper
let(:project) { create(:project, :public) }
let(:milestone) { create(:milestone, project: project) }
......@@ -32,7 +30,7 @@ def visit_issues(project)
def filter_by_milestone(title)
find(".js-milestone-select").click
sleep 1
sleep 0.5
find(".milestone-filter a", text: title).click
sleep 1
end
......
require 'rails_helper'
feature 'Merge Request filtering by Milestone', feature: true do
include Select2Helper
let(:project) { create(:project, :public) }
let(:milestone) { create(:milestone, project: project) }
......@@ -31,6 +29,9 @@ def visit_merge_requests(project)
end
def filter_by_milestone(title)
select2(title, from: '#milestone_title')
find(".js-milestone-select").click
sleep 0.5
find(".milestone-filter a", text: title).click
sleep 1
end
end
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