fix flaky spec

bin/rspec --seed 53044

Failures:

  1) Budget Investments Balloting Phase Confirm
     Failure/Error: expect(page).not_to have_content "#{sp3.price}"
       expected not to find text "100" in "Global Group - Global Heading You still have €999,989 to invest. Amount spent €11 Budget Investment 1006 title €10 Budget Investment 1005 title €1"
     # ./spec/features/budgets/investments_spec.rb:1466:in `block (4 levels) in <top (required)>'
     # ./spec/features/budgets/investments_spec.rb:1458:in `block (3 levels) in <top (required)>'
     # -e:1:in `<main>'

Failed examples:

rspec ./spec/features/budgets/investments_spec.rb:1419 # Budget Investments Balloting Phase Confirm
This commit is contained in:
Julian Herrero
2018-12-17 20:19:41 +01:00
parent 9e759e0a39
commit 7a690acf6c

View File

@@ -1497,7 +1497,7 @@ feature 'Budget Investments' do
expect(page).to have_content "#{sp2.price}"
expect(page).not_to have_content sp3.title
expect(page).not_to have_content "#{sp3.price}"
expect(page).not_to have_content "#{sp3.price}"
end
within("#budget_group_#{group.id}") do