Skip to content

Commit

Permalink
Merge pull request consuldemocracy#5788 from consuldemocracy/hide_mon…
Browse files Browse the repository at this point in the history
…ey_expectation

Add missing expectation in hide money test
  • Loading branch information
javierm authored Nov 11, 2024
2 parents 6f81215 + 64bb42b commit ab67355
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions spec/system/budgets/ballots_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -697,6 +697,8 @@
login_as(user)
visit budget_investments_path(budget_hide_money, heading_id: heading_no_price.id)

expect(page).not_to have_content "Your ballot"

within("#sidebar") do
expect(page).to have_content investment_1.title
expect(page).to have_content investment_2.title
Expand All @@ -706,6 +708,7 @@
click_link "Check my votes"
end

expect(page).to have_content "Your ballot"
expect(page).to have_content investment_1.title
expect(page).to have_content investment_2.title
expect(page).not_to have_content investment_1.price
Expand Down

0 comments on commit ab67355

Please sign in to comment.