Mitigate recurrent flaky specs for voting comments
This commit is contained in:
committed by
Javier Martín
parent
38916deb0b
commit
4ddc869441
@@ -471,6 +471,11 @@ feature 'Commenting Budget::Investments' do
|
|||||||
|
|
||||||
within("#comment_#{@comment.id}_votes") do
|
within("#comment_#{@comment.id}_votes") do
|
||||||
find('.in_favor a').click
|
find('.in_favor a').click
|
||||||
|
|
||||||
|
within('.in_favor') do
|
||||||
|
expect(page).to have_content "1"
|
||||||
|
end
|
||||||
|
|
||||||
find('.against a').click
|
find('.against a').click
|
||||||
|
|
||||||
within('.in_favor') do
|
within('.in_favor') do
|
||||||
|
|||||||
@@ -476,6 +476,11 @@ feature 'Commenting debates' do
|
|||||||
|
|
||||||
within("#comment_#{@comment.id}_votes") do
|
within("#comment_#{@comment.id}_votes") do
|
||||||
find('.in_favor a').click
|
find('.in_favor a').click
|
||||||
|
|
||||||
|
within('.in_favor') do
|
||||||
|
expect(page).to have_content "1"
|
||||||
|
end
|
||||||
|
|
||||||
find('.against a').click
|
find('.against a').click
|
||||||
|
|
||||||
within('.in_favor') do
|
within('.in_favor') do
|
||||||
|
|||||||
@@ -553,6 +553,11 @@ feature 'Commenting legislation questions' do
|
|||||||
|
|
||||||
within("#comment_#{@comment.id}_votes") do
|
within("#comment_#{@comment.id}_votes") do
|
||||||
find('.in_favor a').click
|
find('.in_favor a').click
|
||||||
|
|
||||||
|
within('.in_favor') do
|
||||||
|
expect(page).to have_content "1"
|
||||||
|
end
|
||||||
|
|
||||||
find('.against a').click
|
find('.against a').click
|
||||||
|
|
||||||
within('.in_favor') do
|
within('.in_favor') do
|
||||||
|
|||||||
@@ -485,6 +485,11 @@ feature 'Commenting polls' do
|
|||||||
|
|
||||||
within("#comment_#{@comment.id}_votes") do
|
within("#comment_#{@comment.id}_votes") do
|
||||||
find('.in_favor a').click
|
find('.in_favor a').click
|
||||||
|
|
||||||
|
within('.in_favor') do
|
||||||
|
expect(page).to have_content "1"
|
||||||
|
end
|
||||||
|
|
||||||
find('.against a').click
|
find('.against a').click
|
||||||
|
|
||||||
within('.in_favor') do
|
within('.in_favor') do
|
||||||
|
|||||||
@@ -515,6 +515,11 @@ feature 'Commenting topics from proposals' do
|
|||||||
|
|
||||||
within("#comment_#{@comment.id}_votes") do
|
within("#comment_#{@comment.id}_votes") do
|
||||||
find('.in_favor a').click
|
find('.in_favor a').click
|
||||||
|
|
||||||
|
within('.in_favor') do
|
||||||
|
expect(page).to have_content "1"
|
||||||
|
end
|
||||||
|
|
||||||
find('.against a').click
|
find('.against a').click
|
||||||
|
|
||||||
within('.in_favor') do
|
within('.in_favor') do
|
||||||
@@ -1065,6 +1070,11 @@ feature 'Commenting topics from budget investments' do
|
|||||||
|
|
||||||
within("#comment_#{@comment.id}_votes") do
|
within("#comment_#{@comment.id}_votes") do
|
||||||
find('.in_favor a').click
|
find('.in_favor a').click
|
||||||
|
|
||||||
|
within('.in_favor') do
|
||||||
|
expect(page).to have_content "1"
|
||||||
|
end
|
||||||
|
|
||||||
find('.against a').click
|
find('.against a').click
|
||||||
|
|
||||||
within('.in_favor') do
|
within('.in_favor') do
|
||||||
|
|||||||
Reference in New Issue
Block a user