Skip to content

Commit

Permalink
fix orders_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ElviaBth committed Jun 7, 2024
1 parent 3a7796e commit 75aee27
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
10 changes: 5 additions & 5 deletions decidim-budgets/spec/system/orders_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@

it "displays total budget" do
within ".budget-summary", match: :first do
expect(page).to have_content("Budget\n€0")
expect(page).to have_content("€0\nBudget")
end
end
end
Expand All @@ -129,7 +129,7 @@
expect(page).to have_css ".budget-list__data--added", count: 1

within ".budget-summary__progressbar-marks", match: :first do
expect(page).to have_content(/Assigned\s€25,000,000/)
expect(page).to have_content(/€25,000,000\sAssigned/)
end
within ".budget__list--header" do
expect(page).to have_content(/Added\s1/)
Expand Down Expand Up @@ -162,7 +162,7 @@
expect(page).to have_css ".budget-list__data--added", count: 1

within ".budget-summary__progressbar-marks", match: :first do
expect(page).to have_content(/Assigned\s€25,000,000/)
expect(page).to have_content(/€25,000,000\sAssigned/)
end
within ".budget__list--header" do
expect(page).to have_content(/Added\s1/)
Expand Down Expand Up @@ -278,7 +278,7 @@
visit_budget

within ".budget-summary__progressbar-marks", match: :first do
expect(page).to have_content(/Assigned\s€25,000,000/)
expect(page).to have_content(/€25,000,000\sAssigned/)
end
within ".budget__list--header" do
expect(page).to have_content(/Added\s1/)
Expand All @@ -289,7 +289,7 @@
end

within ".budget-summary__progressbar-marks", match: :first do
expect(page).to have_content(/Assigned\s€0/)
expect(page).to have_content(/€0\sAssigned/)
end
within ".budget__list--header" do
expect(page).to have_content(/Added\s0/)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,3 @@
</div>
</div>
</div>

0 comments on commit 75aee27

Please sign in to comment.