fix assignment to hidden input

This commit is contained in:
Mike Greiling 2017-10-12 17:44:53 -05:00
parent fcfd60b58a
commit d8cc4540ab
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -33,7 +33,7 @@ RSpec.describe 'Dashboard Issues' do
end end
it 'shows issues when current user is author', :js do it 'shows issues when current user is author', :js do
find('#assignee_id', visible: false).set('') execute_script("document.querySelector('#assignee_id').value=''")
find('.js-author-search', match: :first).click find('.js-author-search', match: :first).click
expect(find('li[data-user-id="null"] a.is-active')).to be_visible expect(find('li[data-user-id="null"] a.is-active')).to be_visible