Commit 558e92b3 authored by Phil Hughes's avatar Phil Hughes Committed by Nick Thomas

fixed spec/features/issues/form_spec.rb

parent 730f3f5c
...@@ -35,8 +35,6 @@ describe 'New/edit issue', :feature, :js do ...@@ -35,8 +35,6 @@ describe 'New/edit issue', :feature, :js do
click_link user2.name click_link user2.name
end end
click_button user2.name
page.within '.dropdown-menu-user' do page.within '.dropdown-menu-user' do
click_link 'Unassigned' click_link 'Unassigned'
end end
...@@ -51,13 +49,11 @@ describe 'New/edit issue', :feature, :js do ...@@ -51,13 +49,11 @@ describe 'New/edit issue', :feature, :js do
expect(find('a', text: 'Assign to me', visible: false)).not_to be_visible expect(find('a', text: 'Assign to me', visible: false)).not_to be_visible
click_button user.name
page.within('.dropdown-menu-user') do page.within('.dropdown-menu-user') do
click_link user.name click_link user.name
end end
expect(page.find('.dropdown-menu-user', visible: false)).not_to be_visible expect(find('a', text: 'Assign to me')).to be_visible
end end
end end
...@@ -174,7 +170,6 @@ describe 'New/edit issue', :feature, :js do ...@@ -174,7 +170,6 @@ describe 'New/edit issue', :feature, :js do
end end
expect(find('.js-assignee-search')).to have_content(user.name) expect(find('.js-assignee-search')).to have_content(user.name)
click_button user.name
page.within '.dropdown-menu-user' do page.within '.dropdown-menu-user' do
click_link user2.name click_link user2.name
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment