Add test for label search behaviour

This commit is contained in:
Kushal Pandya 2018-02-27 20:37:41 +05:30
parent 6952a9b384
commit 13a7fde703
1 changed files with 12 additions and 0 deletions

View File

@ -189,6 +189,18 @@ describe 'New/edit issue', :js do
expect(find('.js-label-select')).to have_content('Labels')
end
it 'clears label search input field when a label is selected' do
click_button 'Labels'
page.within '.dropdown-menu-labels' do
search_field = find('input[type="search"]')
search_field.set(label2.title)
click_link label2.title
expect(search_field.value).to eq ''
end
end
it 'correctly updates the selected user when changing assignee' do
click_button 'Unassigned'