Fix click not being able to find the current element to use trigger('click') instead

This commit is contained in:
Filipa Lacerda 2017-06-26 10:23:03 +01:00
parent 4503240abd
commit 2fb004ea86

View file

@ -151,7 +151,7 @@ feature 'Environments page', :feature, :js do
find('.js-dropdown-play-icon-container').click
expect(page).to have_content(action.name.humanize)
expect { find('.js-manual-action-link').click }
expect { find('.js-manual-action-link').trigger('click') }
.not_to change { Ci::Pipeline.count }
end