forces capybara to wait after pushing a button by adding an extra expectation

This commit is contained in:
kikito
2016-02-24 11:25:37 +01:00
parent d194707ff2
commit 171c4dde13

View File

@@ -300,6 +300,8 @@ feature 'Commenting debates' do
# The button's text should now be "..." # The button's text should now be "..."
# This should be checked before the Ajax request is finished # This should be checked before the Ajax request is finished
expect(page).to_not have_button 'Publish comment' expect(page).to_not have_button 'Publish comment'
expect(page).to have_content('Testing submit button!')
end end
feature "Moderators" do feature "Moderators" do