Wait for like to finish

This commit is contained in:
Benjamin Neff 2017-08-11 22:03:48 +02:00
parent c2526c6111
commit 6b2c010ecc
No known key found for this signature in database
GPG key ID: 971464C3F1A90194

View file

@ -95,7 +95,9 @@ module PublishingCukeHelpers
def like_stream_post(post_text)
within_post(post_text) do
find(:css, 'a.like').click
action = find(:css, "a.like").text
find(:css, "a.like").click
expect(find(:css, "a.like")).not_to have_text(action)
end
end