Skip to content

Commit

Permalink
Merge pull request #2989 from consul/backport-2734_consul_related-fix…
Browse files Browse the repository at this point in the history
…_flaky_comments_spec

Fix flaky specs: proposals and legislation Voting comments Update
  • Loading branch information
javierm committed Oct 29, 2018
2 parents c0b8bd9 + 74927f4 commit 65dc4b2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/features/comments/legislation_questions_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,11 @@

within("#comment_#{@comment.id}_votes") do
find('.in_favor a').click

within('.in_favor') do
expect(page).to have_content "1"
end

find('.against a').click

within('.in_favor') do
Expand Down
5 changes: 5 additions & 0 deletions spec/features/comments/proposals_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,11 @@

within("#comment_#{@comment.id}_votes") do
find('.in_favor a').click

within('.in_favor') do
expect(page).to have_content "1"
end

find('.against a').click

within('.in_favor') do
Expand Down

0 comments on commit 65dc4b2

Please sign in to comment.