Commit 25b0fd8d authored by Jose Vargas's avatar Jose Vargas

Fix selectors for the sorting_helpers module

parent ff2c22fe
......@@ -2,7 +2,6 @@
- board = local_assigns.fetch(:board, nil)
- block_css_class = type != :boards_modal ? 'row-content-block second-block' : ''
- user_can_admin_list = board && can?(current_user, :admin_list, board.parent)
- show_sorting_dropdown = local_assigns.fetch(:show_sorting_dropdown, true)
.issues-filters
.issues-details-filters.filtered-search-block{ class: block_css_class, "v-pre" => type == :boards_modal }
......
......@@ -13,9 +13,9 @@ module Spec
module Features
module SortingHelpers
def sort_by(value)
find('.filter-dropdown-container button.dropdown-menu-toggle').click
find('.filter-dropdown-container .dropdown').click
page.within('.content ul.dropdown-menu.dropdown-menu-right li') do
page.within('ul.dropdown-menu.dropdown-menu-right li') do
click_link(value)
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