Skip to content

Commit

Permalink
Merge pull request #4669 from consul/fix_investment_spec
Browse files Browse the repository at this point in the history
Fix flaky investments order spec
  • Loading branch information
javierm committed Sep 3, 2021
2 parents 713ae54 + ed3ad35 commit 39a0679
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/system/budgets/investments_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -297,8 +297,13 @@
expect(order).not_to be_empty

click_link "highest rated"

expect(page).to have_css "h2", exact_text: "highest rated"

click_link "random"

expect(page).to have_css "h2", exact_text: "random"

visit budget_investments_path(budget, heading_id: heading.id)
new_order = all(".budget-investment h3").map(&:text)

Expand Down

0 comments on commit 39a0679

Please sign in to comment.