Fix broken test to use trigger in order to not take tooltip overlaping in consideration

This commit is contained in:
Filipa Lacerda 2017-02-10 18:54:40 +00:00
parent 2895937c48
commit 18455939ca

View file

@ -66,7 +66,7 @@ feature 'Mini Pipeline Graph', :js, :feature do
end
it 'should close when toggle is clicked again' do
toggle.click
toggle.trigger('click')
expect(toggle.find(:xpath, '..')).not_to have_selector('.mini-pipeline-graph-dropdown-menu')
end