diff options
| author | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-17 11:32:02 -0200 |
|---|---|---|
| committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2016-02-17 11:32:02 -0200 |
| commit | 9823d00e0b13224ae9e820e7d3f9fade69201e99 (patch) | |
| tree | 9a37f949fdfbd560e23150b1a42ca3979fe9c51e /features/steps/shared | |
| parent | 943bed68bc42d02246ddea63a25432d3aba709e7 (diff) | |
| download | gitlab-ce-9823d00e0b13224ae9e820e7d3f9fade69201e99.tar.gz | |
Add ability to see and sort on vote count from Issues and MR listssee-and-sort-on-vote-count-mr-issues
Diffstat (limited to 'features/steps/shared')
| -rw-r--r-- | features/steps/shared/issuable.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/features/steps/shared/issuable.rb b/features/steps/shared/issuable.rb index 2117feaedb8..ae10c6069a9 100644 --- a/features/steps/shared/issuable.rb +++ b/features/steps/shared/issuable.rb @@ -113,6 +113,22 @@ module SharedIssuable end end + step 'I sort the list by "Least popular"' do + find('button.dropdown-toggle.btn').click + + page.within('ul.dropdown-menu.dropdown-menu-align-right li') do + click_link 'Least popular' + end + end + + step 'I sort the list by "Most popular"' do + find('button.dropdown-toggle.btn').click + + page.within('ul.dropdown-menu.dropdown-menu-align-right li') do + click_link 'Most popular' + 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') |
