Commit 5513950d authored by Phil Hughes's avatar Phil Hughes

Fixed failing weight dropdown tests

parent b0639b1f
require 'rails_helper'
feature 'Issue filtering by Weight', feature: true do
include Select2Helper
let(:project) { create(:project, :public) }
let(:weight_num) { random_weight }
......@@ -45,7 +43,8 @@ feature 'Issue filtering by Weight', feature: true do
end
def filter_by_weight(title)
select2(title, from: '#weight')
find('.js-weight-select').click
find('.weight-filter .dropdown-content a', text: title, match: :first).click
end
def random_weight
......
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