Added label filter tests
This commit is contained in:
parent
af3d7d3134
commit
122b4148f7
|
@ -76,6 +76,28 @@ describe 'Filter issues', feature: true do
|
|||
end
|
||||
end
|
||||
|
||||
describe 'Filter issues for label from issues#index', js: true do
|
||||
before do
|
||||
visit namespace_project_issues_path(project.namespace, project)
|
||||
find('.js-label-select').click
|
||||
end
|
||||
|
||||
it 'should filter by any label' do
|
||||
find('.dropdown-menu-labels a', text: 'Any Label').click
|
||||
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
|
||||
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
|
||||
expect(find('.js-label-select .dropdown-toggle-text')).to have_content(label.title)
|
||||
end
|
||||
end
|
||||
|
||||
describe 'Filter issues for assignee and label from issues#index' do
|
||||
|
||||
before do
|
||||
|
|
Loading…
Reference in New Issue