Merge pull request #3982 from rockandror/fix_flakies_vote_multiple_times
Mitigate flaky specs for vote multiple times
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user