Merge pull request #2989 from consul/backport-2734_consul_related-fix_flaky_comments_spec

Fix flaky specs: proposals and legislation Voting comments Update
This commit is contained in:
Javier Martín
2018-10-29 14:16:39 +01:00
committed by GitHub
2 changed files with 10 additions and 0 deletions

View File

@@ -499,6 +499,11 @@ feature 'Commenting legislation questions' do
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

View File

@@ -464,6 +464,11 @@ feature 'Commenting proposals' do
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