diff options
author | James Lopez <james@gitlab.com> | 2018-12-05 18:36:12 +0300 |
---|---|---|
committer | James Lopez <james@gitlab.com> | 2018-12-05 18:36:12 +0300 |
commit | 2ea6900882edb151bfb2ee4ef9733a9fc7b521f6 (patch) | |
tree | 82825477cc9fc71982735c319c0306eb3607affa /spec/support/helpers | |
parent | 40df635273bc5ae0bf70197799c0ec6136a2b6a0 (diff) | |
parent | ad551e5e719fe4ef168242c8a19dcdbc92d7e6c2 (diff) |
Merge branch '50626-searching-users-by-the-admin-panel-wipes-query-when-using-sort' into 'master'
Resolve "Searching users by the admin panel wipes query when using sort"
Closes #50626
See merge request gitlab-org/gitlab-ce!23439
Diffstat (limited to 'spec/support/helpers')
-rw-r--r-- | spec/support/helpers/features/list_rows_helpers.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/support/helpers/features/list_rows_helpers.rb b/spec/support/helpers/features/list_rows_helpers.rb new file mode 100644 index 00000000000..0626415361c --- /dev/null +++ b/spec/support/helpers/features/list_rows_helpers.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true +# These helpers allow you to access rows in the list +# +# Usage: +# describe "..." do +# include Spec::Support::Helpers::Features::ListRowsHelpers +# ... +# +# expect(first_row.text).to include("John Doe") +# expect(second_row.text).to include("John Smith") +# +module Spec + module Support + module Helpers + module Features + module ListRowsHelpers + def first_row + page.all('ul.content-list > li')[0] + end + + def second_row + page.all('ul.content-list > li')[1] + end + end + end + end + end +end |