diff options
author | Phil Hughes <me@iamphill.com> | 2016-03-10 09:51:39 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-03-10 13:54:54 +0000 |
commit | ee9a6d7fb3215f5ec66152aa64ed40a7ef61fb1b (patch) | |
tree | 331e4c433f179ca2c8d58b61ce815c246c0c67ad /spec | |
parent | 8d7e0f0ba93be42119f1c497f280353a13065c85 (diff) | |
download | gitlab-ce-ee9a6d7fb3215f5ec66152aa64ed40a7ef61fb1b.tar.gz |
Fixed failing milestone filter testsdropdown-js
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/issues/filter_by_milestone_spec.rb | 4 | ||||
-rw-r--r-- | spec/features/merge_requests/filter_by_milestone_spec.rb | 7 |
2 files changed, 5 insertions, 6 deletions
diff --git a/spec/features/issues/filter_by_milestone_spec.rb b/spec/features/issues/filter_by_milestone_spec.rb index e48f48153f5..f6e33f651c4 100644 --- a/spec/features/issues/filter_by_milestone_spec.rb +++ b/spec/features/issues/filter_by_milestone_spec.rb @@ -1,8 +1,6 @@ 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 @@ feature 'Issue filtering by Milestone', feature: true do 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 diff --git a/spec/features/merge_requests/filter_by_milestone_spec.rb b/spec/features/merge_requests/filter_by_milestone_spec.rb index f70214e1122..1b2fd1bab10 100644 --- a/spec/features/merge_requests/filter_by_milestone_spec.rb +++ b/spec/features/merge_requests/filter_by_milestone_spec.rb @@ -1,8 +1,6 @@ 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 @@ feature 'Merge Request filtering by Milestone', feature: true do 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 |