Skip to content

Commit

Permalink
Wait for like to finish
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperTux88 committed Aug 12, 2017
1 parent c2526c6 commit 6b2c010
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion features/support/publishing_cuke_helpers.rb
Expand Up @@ -95,7 +95,9 @@ def within_post(post_text)

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

Expand Down

0 comments on commit 6b2c010

Please sign in to comment.