From 7a690acf6cf31c4cea81597a32e10ff853c1e53f Mon Sep 17 00:00:00 2001 From: Julian Herrero Date: Mon, 17 Dec 2018 20:19:41 +0100 Subject: [PATCH] fix flaky spec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 ' # ./spec/features/budgets/investments_spec.rb:1458:in `block (3 levels) in ' # -e:1:in `
' Failed examples: rspec ./spec/features/budgets/investments_spec.rb:1419 # Budget Investments Balloting Phase Confirm --- spec/features/budgets/investments_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/features/budgets/investments_spec.rb b/spec/features/budgets/investments_spec.rb index 93f2f3799..8438dbdbe 100644 --- a/spec/features/budgets/investments_spec.rb +++ b/spec/features/budgets/investments_spec.rb @@ -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