Merge pull request #2734 from javierv/2713-fix_flaky_update_votes_spec

Fix flaky specs: Votes Debates and Voting comments Update
This commit is contained in:
Raimond Garcia
2018-07-15 14:35:18 +02:00
committed by GitHub
6 changed files with 36 additions and 0 deletions

View File

@@ -471,6 +471,11 @@ feature 'Commenting Budget::Investments' 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

@@ -476,6 +476,11 @@ feature 'Commenting debates' 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

@@ -553,6 +553,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

@@ -485,6 +485,11 @@ feature 'Commenting polls' 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

@@ -515,6 +515,11 @@ feature 'Commenting topics from 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
@@ -1065,6 +1070,11 @@ feature 'Commenting topics from budget investments' 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

@@ -83,6 +83,12 @@ feature 'Votes' do
visit debate_path(create(:debate))
find('.in-favor a').click
within('.in-favor') do
expect(page).to have_content "100%"
expect(page).to have_css("a.voted")
end
find('.against a').click
within('.in-favor') do