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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user