diff options
| author | Phil Hughes <me@iamphill.com> | 2016-04-12 09:32:12 +0100 |
|---|---|---|
| committer | Phil Hughes <me@iamphill.com> | 2016-04-12 09:32:12 +0100 |
| commit | a6ba94dbd109637b996246601f1bc2b62dc0a8d7 (patch) | |
| tree | b907a7bf078f03a549d46f01761cab72e0496eef /spec/features/issues | |
| parent | 122b4148f764952fc5f365fee77e9e3241ca1093 (diff) | |
| download | gitlab-ce-a6ba94dbd109637b996246601f1bc2b62dc0a8d7.tar.gz | |
Filtering by any label keeps the text on the toggle buttonlabel-filter
Diffstat (limited to 'spec/features/issues')
| -rw-r--r-- | spec/features/issues/filter_issues_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/features/issues/filter_issues_spec.rb b/spec/features/issues/filter_issues_spec.rb index 91de06e31f9..69b22232f10 100644 --- a/spec/features/issues/filter_issues_spec.rb +++ b/spec/features/issues/filter_issues_spec.rb @@ -84,16 +84,25 @@ describe 'Filter issues', feature: true do it 'should filter by any label' do find('.dropdown-menu-labels a', text: 'Any Label').click + page.within '.labels-filter' do + expect(page).to have_content 'Any Label' + end expect(find('.js-label-select .dropdown-toggle-text')).to have_content('Label') end it 'should filter by no label' do find('.dropdown-menu-labels a', text: 'No Label').click + page.within '.labels-filter' do + expect(page).to have_content 'No Label' + end expect(find('.js-label-select .dropdown-toggle-text')).to have_content('No Label') end it 'should filter by no label' do find('.dropdown-menu-labels a', text: label.title).click + page.within '.labels-filter' do + expect(page).to have_content label.title + end expect(find('.js-label-select .dropdown-toggle-text')).to have_content(label.title) end end |
