summaryrefslogtreecommitdiff
path: root/features/steps/shared
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-01-21 12:54:10 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-01-21 12:54:10 -0500
commit0f79620ccb049dc8146ab3c639f993122329eb83 (patch)
tree34c3e63a5624c1aaee605be20fc410bba16422fb /features/steps/shared
parent4d345bc4003022ca22b5e7f42069c5a6bde41b6c (diff)
downloadgitlab-ce-0f79620ccb049dc8146ab3c639f993122329eb83.tar.gz
Little refactor plus some specs.
Diffstat (limited to 'features/steps/shared')
-rw-r--r--features/steps/shared/issuable.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/features/steps/shared/issuable.rb b/features/steps/shared/issuable.rb
index 4c5f7488efb..25c2b476f43 100644
--- a/features/steps/shared/issuable.rb
+++ b/features/steps/shared/issuable.rb
@@ -106,6 +106,19 @@ module SharedIssuable
edit_issuable
end
+ step 'I sort the list by "Oldest updated"' do
+ find('button.dropdown-toggle.btn').click
+ page.within('ul.dropdown-menu.dropdown-menu-align-right li') do
+ click_link "Oldest updated"
+ end
+ end
+
+ step 'The list should be sorted by "Oldest updated"' do
+ page.within('div.dropdown.inline.prepend-left-10') do
+ expect(page.find('button.dropdown-toggle.btn')).to have_content('Oldest updated')
+ end
+ end
+
def create_issuable_for_project(project_name:, title:, type: :issue)
project = Project.find_by(name: project_name)