Merge pull request #3982 from rockandror/fix_flakies_vote_multiple_times

Mitigate flaky specs for vote multiple times
This commit is contained in:
Javier Martín
2020-04-24 21:12:18 +02:00
committed by GitHub
4 changed files with 25 additions and 0 deletions

View File

@@ -573,6 +573,11 @@ describe "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(".in_favor a").click
within(".in_favor") do

View File

@@ -525,6 +525,11 @@ describe "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(".in_favor a").click
within(".in_favor") do

View File

@@ -505,6 +505,11 @@ describe "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(".in_favor a").click
within(".in_favor") do

View File

@@ -555,6 +555,11 @@ describe "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(".in_favor a").click
within(".in_favor") do
@@ -1104,6 +1109,11 @@ describe "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(".in_favor a").click
within(".in_favor") do