Commit ee9a6d7f authored by Phil Hughes's avatar Phil Hughes

Fixed failing milestone filter tests

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