Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sorting_helper.rb « support « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 577518d726c70dda1bad1101c69677f734694286 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Helper allows you to sort items
#
# Params
#   value - value for sorting
#
# Usage:
#   include SortingHelper
#
#   sorting_by('Oldest updated')
#
module SortingHelper
  def sorting_by(value)
    find('button.dropdown-toggle').click
    page.within('.content ul.dropdown-menu.dropdown-menu-align-right li') do
      click_link value
    end
  end
end