ensure delete option is visible before attempting to click on it

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

View file

@ -104,7 +104,10 @@ feature 'Merge requests > User posts diff notes', :js do
it 'allows commenting' do
should_allow_commenting(find('[id="2f6fcd96b88b36ce98c38da085c795a27d92a3dd_10_9"]'))
first('.js-note-delete', visible: false).click
accept_confirm do
first('button.more-actions-toggle').click
first('.js-note-delete').click
end
should_allow_commenting(find('[id="2f6fcd96b88b36ce98c38da085c795a27d92a3dd_10_9"]'))
end